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:
parent
0322f4eeed
commit
498caed286
2 changed files with 4 additions and 4 deletions
|
@ -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)
|
||||
|
|
|
@ -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()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue