fixing osx builds - had forgotten to define this for the object file where the test runner is compiled
This commit is contained in:
parent
2f44ac1def
commit
3340162efd
1 changed files with 5 additions and 5 deletions
|
@ -61,9 +61,13 @@ add_library(doctest_main OBJECT
|
||||||
"src/unit.cpp"
|
"src/unit.cpp"
|
||||||
)
|
)
|
||||||
set_target_properties(doctest_main PROPERTIES
|
set_target_properties(doctest_main PROPERTIES
|
||||||
COMPILE_DEFINITIONS "$<$<CXX_COMPILER_ID:MSVC>:_SCL_SECURE_NO_WARNINGS>"
|
|
||||||
COMPILE_OPTIONS "$<$<CXX_COMPILER_ID:MSVC>:/EHsc;$<$<CONFIG:Release>:/Od>>"
|
COMPILE_OPTIONS "$<$<CXX_COMPILER_ID:MSVC>:/EHsc;$<$<CONFIG:Release>:/Od>>"
|
||||||
)
|
)
|
||||||
|
target_compile_definitions(doctest_main PUBLIC
|
||||||
|
"$<$<CXX_COMPILER_ID:MSVC>:_SCL_SECURE_NO_WARNINGS>"
|
||||||
|
"DOCTEST_THREAD_LOCAL"
|
||||||
|
"DOCTEST_CONFIG_SUPER_FAST_ASSERTS"
|
||||||
|
)
|
||||||
target_compile_features(doctest_main PUBLIC cxx_std_11)
|
target_compile_features(doctest_main PUBLIC cxx_std_11)
|
||||||
target_include_directories(doctest_main PRIVATE "thirdparty/doctest")
|
target_include_directories(doctest_main PRIVATE "thirdparty/doctest")
|
||||||
|
|
||||||
|
@ -96,10 +100,6 @@ foreach(file ${files})
|
||||||
string(REGEX REPLACE "unit-([^$]+)" "test-\\1" testcase ${file_basename})
|
string(REGEX REPLACE "unit-([^$]+)" "test-\\1" testcase ${file_basename})
|
||||||
|
|
||||||
add_executable(${testcase} $<TARGET_OBJECTS:doctest_main> ${file})
|
add_executable(${testcase} $<TARGET_OBJECTS:doctest_main> ${file})
|
||||||
target_compile_definitions(${testcase} PRIVATE
|
|
||||||
DOCTEST_CONFIG_SUPER_FAST_ASSERTS
|
|
||||||
DOCTEST_THREAD_LOCAL
|
|
||||||
)
|
|
||||||
target_compile_options(${testcase} PRIVATE
|
target_compile_options(${testcase} PRIVATE
|
||||||
$<$<CXX_COMPILER_ID:MSVC>:/EHsc;$<$<CONFIG:Release>:/Od>>
|
$<$<CXX_COMPILER_ID:MSVC>:/EHsc;$<$<CONFIG:Release>:/Od>>
|
||||||
$<$<NOT:$<CXX_COMPILER_ID:MSVC>>:-Wno-deprecated;-Wno-float-equal>
|
$<$<NOT:$<CXX_COMPILER_ID:MSVC>>:-Wno-deprecated;-Wno-float-equal>
|
||||||
|
|
Loading…
Reference in a new issue