From ff44b3bab7bea1c1d53223f32e5c8ba58279ea2b Mon Sep 17 00:00:00 2001 From: Shun Wang Date: Thu, 25 Jul 2024 17:50:30 +0800 Subject: [PATCH] auto set CMAKE_GENERATOR for conan --- Tools/CMake/Conan.cmake | 1 + 1 file changed, 1 insertion(+) diff --git a/Tools/CMake/Conan.cmake b/Tools/CMake/Conan.cmake index 4ca79047d8..e9f79e8d34 100644 --- a/Tools/CMake/Conan.cmake +++ b/Tools/CMake/Conan.cmake @@ -35,6 +35,7 @@ if(USE_CONAN) COMMAND conan install ${CONAN_FILE_PATH} --output-folder=${CMAKE_BINARY_DIR}/conan_build -s build_type=${CMAKE_BUILD_TYPE} + -c tools.cmake.cmaketoolchain:generator=${CMAKE_GENERATOR} -s compiler.runtime=${CONAN_COMPILER_RUNTIME} --build=missing) elseif(APPLE)