diff --git a/CMakeLists.txt b/CMakeLists.txt index e34eb22..fd49f5b 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -160,6 +160,9 @@ if (${PROJECT_NAME}_BUILD_CMD_TOOL) ) find_package(Boost ${Boost_VER} REQUIRED COMPONENTS nowide) + if (MSVC) + set_target_properties(Boost::nowide PROPERTIES MAP_IMPORTED_CONFIG_RelWithDebInfo Release) + endif () set_target_properties(${_libname}_cmd PROPERTIES OUTPUT_NAME ${_libname}) target_link_libraries(${_libname}_cmd ${_libname}_convert Boost::nowide) endif () diff --git a/tests/CMakeLists.txt b/tests/CMakeLists.txt index c32e797..8a61261 100644 --- a/tests/CMakeLists.txt +++ b/tests/CMakeLists.txt @@ -4,6 +4,10 @@ include(Catch) find_package(Boost ${Boost_VER} REQUIRED COMPONENTS nowide) +if (MSVC) + set_target_properties(Boost::nowide PROPERTIES MAP_IMPORTED_CONFIG_RelWithDebInfo Release) +endif () + set(CATCH_EXTRA_ARGS "" CACHE STRING "Extra arguments for catch2 test suites.") set(TEST_DATA_DIR ${CMAKE_CURRENT_SOURCE_DIR}/data)