1
0
Fork 0
mirror of https://github.com/TheLartians/ModernCppStarter.git synced 2025-08-30 21:51:12 +02:00

dEfine DOCTEST_CONFIG_USE_STD_HEADERS globally

This commit is contained in:
cvelth 2020-04-24 13:18:20 +03:00
parent 696f83de8e
commit 27bdaa3f3e
2 changed files with 1 additions and 4 deletions

View file

@ -48,6 +48,7 @@ if (NOT TEST_INSTALLED_VERSION)
target_compile_options(Greeter PUBLIC -Wall -pedantic -Wextra -Werror)
elseif(MSVC)
target_compile_options(Greeter PUBLIC /W4 /WX)
target_compile_definitions(GreeterTests PUBLIC DOCTEST_CONFIG_USE_STD_HEADERS)
endif()
endif()

View file

@ -1,7 +1,3 @@
#if defined(_WIN32) || defined(WIN32)
# define DOCTEST_CONFIG_USE_STD_HEADERS
#endif
#include <doctest/doctest.h>
#include <greeter.h>