treat warnings as errors on msvc as well (#11)

This commit is contained in:
Lars Melchior 2020-04-15 09:21:48 +02:00 committed by GitHub
parent a4881dda8b
commit f371ebfb86
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -47,7 +47,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 -pedantic -Wextra -Werror)
elseif(MSVC)
target_compile_options(Greeter PUBLIC /W4)
target_compile_options(Greeter PUBLIC /W4 /WX)
endif()
endif()