DOCTEST_CONFIG_USE_STD_HEADERS in MSVC++ (#30)

* replace <sstream> with <ostream>

* Use provided by doctest macro instead of explicit include (#1)

* dEfine  `DOCTEST_CONFIG_USE_STD_HEADERS` globally
This commit is contained in:
Cvelth 2020-04-24 13:20:42 +03:00 committed by GitHub
parent 956c2f09b6
commit cefd3fb80e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 1 additions and 5 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()