forces GTEST_HAS_DEATH_TEST

This commit is contained in:
Bas Hendri 2020-05-04 13:31:08 -07:00
parent 0ab350f5de
commit 91858ca3f3

View File

@ -99,5 +99,10 @@ add_library(Microsoft.GSL::GSL ALIAS GSL)
option(GSL_TEST "Generate tests." ${GSL_STANDALONE_PROJECT}) option(GSL_TEST "Generate tests." ${GSL_STANDALONE_PROJECT})
if (GSL_TEST) if (GSL_TEST)
enable_testing() enable_testing()
if(IOS)
add_compile_definitions(
GTEST_HAS_DEATH_TEST=1
)
endif()
add_subdirectory(tests) add_subdirectory(tests)
endif () endif ()