diff --git a/ConanProfiles/ipo.cmake b/ConanProfiles/ipo.cmake index 0dffe27..33c2ac8 100644 --- a/ConanProfiles/ipo.cmake +++ b/ConanProfiles/ipo.cmake @@ -1,9 +1 @@ -cmake_policy(SET CMP0069 NEW) -include(CheckIPOSupported) -check_ipo_supported(RESULT ipo_supported OUTPUT ipo_error) - -if(ipo_supported) - set(CMAKE_INTERPROCEDURAL_OPTIMIZATION TRUE) -else() - message(WARNING "IPO not supported: ${ipo_error}") -endif() \ No newline at end of file +set(CMAKE_INTERPROCEDURAL_OPTIMIZATION TRUE) \ No newline at end of file diff --git a/ConanProfiles/msvc b/ConanProfiles/msvc index 1ce49ef..3d4c4d0 100644 --- a/ConanProfiles/msvc +++ b/ConanProfiles/msvc @@ -12,7 +12,7 @@ build_type=Release tools.cmake.cmaketoolchain:user_toolchain+={{profile_dir}}/msvc_ccache.cmake tools.cmake.cmaketoolchain:user_toolchain+={{profile_dir}}/ipo.cmake -tools.build:cflags=["/Zc:preprocessor", "/Zc:__STDC__", "/D_CRT_DECLARE_NONSTDC_NAMES=1", "/GL"] +tools.build:cflags=["/Zc:preprocessor", "/Zc:__STDC__", "/D_CRT_DECLARE_NONSTDC_NAMES=1"] tools.build:cxxflags=["/Zc:preprocessor", "/permissive-", "/Zc:__cplusplus", "/Zc:enumTypes", "/Zc:templateScope", "/Zc:throwingNew"] [tool_requires]