Commit 2e860429 authored by Gauthier Quesnel's avatar Gauthier Quesnel
Browse files

cmake: use BOOST_UT_DISABLE_MODULE to disable boost.ut module

parent 6a8e3ba2
......@@ -77,7 +77,9 @@ function(irritator_add_test test_name)
PRIVATE
$<$<BOOL:${WITH_DEBUG}>:IRRITATOR_ENABLE_DEBUG>
$<$<CXX_COMPILER_ID:MSVC>:_CRT_SECURE_NO_WARNINGS>
$<$<CXX_COMPILER_ID:MSVC>:_SCL_SECURE_NO_WARNINGS>)
$<$<CXX_COMPILER_ID:MSVC>:_SCL_SECURE_NO_WARNINGS>
$<$<CXX_COMPILER_ID:MSVC>:BOOST_UT_DISABLE_MODULE>)
target_include_directories(${test_name} PUBLIC
$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/include>
......@@ -112,7 +114,8 @@ function(irritator_add_benchmark test_name)
PRIVATE
$<$<BOOL:${WITH_DEBUG}>:IRRITATOR_ENABLE_DEBUG>
$<$<CXX_COMPILER_ID:MSVC>:_CRT_SECURE_NO_WARNINGS>
$<$<CXX_COMPILER_ID:MSVC>:_SCL_SECURE_NO_WARNINGS>)
$<$<CXX_COMPILER_ID:MSVC>:_SCL_SECURE_NO_WARNINGS>
$<$<CXX_COMPILER_ID:MSVC>:BOOST_UT_DISABLE_MODULE>)
target_include_directories(${test_name} PUBLIC
$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/include>
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment