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

prevent warnings for windoof

This commit is contained in:
ClausKlein 2021-02-15 17:22:57 +01:00
parent 0322f4eeed
commit 498caed286
2 changed files with 4 additions and 4 deletions

View file

@ -20,9 +20,9 @@ endif()
# ---- Project settings ----
if(NOT MSVC)
option(BUILD_SHARED_LIBS "Create shared libraries if ON" YES)
endif()
# XXX if(NOT MSVC)
option(BUILD_SHARED_LIBS "Create shared libraries if ON" YES)
# XXX endif()
if(NOT DEFINED CMAKE_CXX_STANDARD)
set(CMAKE_CXX_STANDARD 20)

View file

@ -54,7 +54,7 @@ if(NOT TEST_INSTALLED_VERSION)
if(CMAKE_CXX_COMPILER_ID MATCHES "Clang" OR CMAKE_CXX_COMPILER_ID MATCHES "GNU")
target_compile_options(Greeter PUBLIC -Wall -Wpedantic -Wextra -Werror)
elseif(MSVC)
target_compile_options(Greeter PUBLIC /W4 /WX)
# XXX target_compile_options(Greeter PUBLIC /W4 /WX)
target_compile_definitions(GreeterTests PUBLIC DOCTEST_CONFIG_USE_STD_HEADERS)
endif()
endif()