From c7329497a6c3eb0d51d7f6b92c5481c2447b466e Mon Sep 17 00:00:00 2001 From: Thomas Krijnen Date: Mon, 8 Jan 2018 12:02:34 +0100 Subject: [PATCH] Don't use static boost libs with conda build --- cmake/CMakeLists.txt | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/cmake/CMakeLists.txt b/cmake/CMakeLists.txt index 6fb309169f..5652983229 100644 --- a/cmake/CMakeLists.txt +++ b/cmake/CMakeLists.txt @@ -106,8 +106,9 @@ MACRO(SET_INSTALL_RPATHS _target _paths) SET_TARGET_PROPERTIES(${_target} PROPERTIES INSTALL_RPATH "${${_target}_rpaths}") ENDMACRO() -# Find Boost -IF(WIN32) +# Find Boost: On win32 the (hardcoded) default is to use static libraries and +# runtime, when doing running conda-build we pick what conda prepared for us. +IF(WIN32 AND ("$ENV{CONDA_BUILD}" STREQUAL "")) SET(Boost_USE_STATIC_LIBS ON) SET(Boost_USE_STATIC_RUNTIME ON) SET(Boost_USE_MULTITHREADED ON)