fix RelWithDebInfo build

This commit is contained in:
supermerill 2019-10-22 18:01:29 +02:00
parent 39b6df8f4a
commit 8aaaeaf9de

View File

@ -255,6 +255,8 @@ if(NOT WIN32)
set(MINIMUM_BOOST_VERSION "1.64.0")
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)
add_library(boost_libs INTERFACE)
add_library(boost_headeronly INTERFACE)