Update CMakeLists.txt

This commit is contained in:
Merill 2019-11-18 19:23:09 +01:00 committed by GitHub
parent caec790c9a
commit 1b3cfac8b8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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)