From 1b3cfac8b8e3f34db858ce093270d875dbde4c46 Mon Sep 17 00:00:00 2001 From: Merill Date: Mon, 18 Nov 2019 19:23:09 +0100 Subject: [PATCH] Update CMakeLists.txt --- CMakeLists.txt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 84ce2294d..54e51dc1a 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -256,7 +256,9 @@ if(NOT WIN32) endif() find_package(Boost ${MINIMUM_BOOST_VERSION} REQUIRED COMPONENTS system filesystem thread log locale regex) # boost compile only in release & debug. We have to force the release version for RELWITHDEBINFO compilation -set_target_properties(${Boost_LIBRARIES} PROPERTIES MAP_IMPORTED_CONFIG_RELWITHDEBINFO RELEASE) +if (MSVC) + set_target_properties(${Boost_LIBRARIES} PROPERTIES MAP_IMPORTED_CONFIG_RELWITHDEBINFO RELEASE) +endif() add_library(boost_libs INTERFACE) add_library(boost_headeronly INTERFACE)