diff --git a/test/CMakeLists.txt b/test/CMakeLists.txt index fbc94d1..4b276ed 100644 --- a/test/CMakeLists.txt +++ b/test/CMakeLists.txt @@ -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() diff --git a/test/source/greeter.cpp b/test/source/greeter.cpp index a965ae4..ca8834d 100644 --- a/test/source/greeter.cpp +++ b/test/source/greeter.cpp @@ -1,11 +1,6 @@ #include #include -#if defined(_WIN32) || defined(WIN32) -// apparently this is required to compile in MSVC++ -# include -#endif - TEST_CASE("Greeter") { using namespace greeter;