1
0
mirror of https://github.com/rwengine/openrw.git synced 2024-09-15 06:52:34 +02:00

tests: do not link to the dynamic Boost Test library on Windows

This commit is contained in:
Anonymous Maarten 2017-11-05 02:57:28 +01:00 committed by Daniel Evans
parent e190fc54fb
commit ebc74559e8

View File

@ -62,9 +62,15 @@ add_executable(rwtests
target_compile_definitions(rwtests
PRIVATE
"RW_TEST_WITH_DATA=$<NOT:$<BOOL:${TESTS_NODATA}>>"
"BOOST_TEST_DYN_LINK"
)
if(NOT CMAKE_SYSTEM_NAME STREQUAL "Windows")
target_compile_definitions(rwtests
PRIVATE
"BOOST_TEST_DYN_LINK"
)
endif()
target_include_directories(rwtests
SYSTEM
PRIVATE