From 57b576649067a05cbd711e034b3948efe4ed6004 Mon Sep 17 00:00:00 2001 From: Deukhoofd Date: Tue, 31 Dec 2019 19:38:06 +0100 Subject: [PATCH] Only build deps when missing, and try and retrieve compiler from flags. --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 79ec25e..2938302 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -25,7 +25,7 @@ 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 CreatureLib -s compiler=clang -s compiler.libcxx=libstdc++11 -s compiler.version=${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}) endif () include(${CMAKE_BINARY_DIR}/conanbuildinfo.cmake) conan_basic_setup()