From 3d55c4d449b4a36c2773ca43b4fcb31d8ed85dde Mon Sep 17 00:00:00 2001 From: Deukhoofd Date: Tue, 31 Dec 2019 19:40:46 +0100 Subject: [PATCH] Use GNU for Windows build. --- CMakeLists.txt | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 2938302..2db01b7 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -25,7 +25,11 @@ if (NOT EXISTS ${CMAKE_BINARY_DIR}/conanbuildinfo.cmake) message(WARNING "The file conanbuildinfo.cmake doesn't exist, running conan install.") string(REPLACE "." ";" VERSION_LIST "${CMAKE_CXX_COMPILER_VERSION}") list(GET VERSION_LIST 0 MAJOR) - execute_process(COMMAND conan install ${CMAKE_SOURCE_DIR} --install-folder=${CMAKE_BINARY_DIR} --build missing -s compiler=${CMAKE_CXX_COMPILER} -s compiler.libcxx=libstdc++11 -s compiler.version=${MAJOR}) + if (NOT WINDOWS) + execute_process(COMMAND conan install ${CMAKE_SOURCE_DIR} --install-folder=${CMAKE_BINARY_DIR} --build missing -s compiler=clang -s compiler.libcxx=libstdc++11 -s compiler.version=${MAJOR}) + else() + execute_process(COMMAND conan install ${CMAKE_SOURCE_DIR} --install-folder=${CMAKE_BINARY_DIR} --build missing -s compiler=GNU -s compiler.libcxx=libstdc++11 -s compiler.version=${MAJOR}) + endif() endif () include(${CMAKE_BINARY_DIR}/conanbuildinfo.cmake) conan_basic_setup()