@@ -18,18 +18,17 @@ list(APPEND CMAKE_PREFIX_PATH ${CMAKE_BINARY_DIR})
1818
1919if (NOT EXISTS "${CMAKE_BINARY_DIR} /conan.cmake" )
2020 message (STATUS "Downloading conan.cmake from https://github.com/conan-io/cmake-conan" )
21- file (DOWNLOAD "https://raw.githubusercontent.com/conan-io/cmake-conan/1ed947da9c0207b070c7967af1c60da636039c33 /conan.cmake"
21+ file (DOWNLOAD "https://raw.githubusercontent.com/conan-io/cmake-conan/4b01ffd8c058f5784ebf39b9bebab3961be52888 /conan.cmake"
2222 "${CMAKE_BINARY_DIR} /conan.cmake"
23- EXPECTED_HASH SHA256=8e1ae613d112105fcb43f2837fe81d6d08b4619237a8035731afebbea9646e32
23+ EXPECTED_HASH SHA256=B48262E9B603378E16E1056E786BF389EB7F2FE2267DACBB41C5A9E33A07E0F1
2424 TLS_VERIFY ON )
2525endif ()
2626
2727include (conan)
2828
29- conan_check(VERSION 1.35.2 REQUIRED)
29+ conan_check(VERSION 1.51.0 REQUIRED)
3030
31- # TODO: cmake-conan v0.17.0 can automatically set the compiler.cppstd propety based on CMAKE_CXX_STANDARD.
32- # We could set this variable globally but it goes against current conventions where the CXX standard is set per target.
31+ # We could set this variable globally but it goes against current conventions where the CXX standard is set per target.
3332get_property (is_multi_config GLOBAL PROPERTY GENERATOR_IS_MULTI_CONFIG)
3433# if a specific build type is set ignore the multi config generator
3534if (${is_multi_config} AND NOT DEFINED CMAKE_BUILD_TYPE )
@@ -44,7 +43,6 @@ if(${is_multi_config} AND NOT DEFINED CMAKE_BUILD_TYPE)
4443 OPTIONS build_benchmarks=${benchmark_option}
4544 OPTIONS build_tests=${tests_option}
4645 SETTINGS ${conan_settings}
47- SETTINGS compiler.cppstd=20
4846 ${compiler_libcxx}
4947 )
5048 endforeach ()
5957 OPTIONS build_benchmarks=${benchmark_option}
6058 OPTIONS build_tests=${tests_option}
6159 SETTINGS ${conan_settings}
62- SETTINGS compiler.cppstd=20
6360 ${compiler_libcxx}
6461 )
6562 include (conanbuildinfo)
0 commit comments