From f371ebfb8688de0ffce6049e848ee5d2c8d8b016 Mon Sep 17 00:00:00 2001 From: Lars Melchior Date: Wed, 15 Apr 2020 09:21:48 +0200 Subject: [PATCH] treat warnings as errors on msvc as well (#11) --- test/CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/CMakeLists.txt b/test/CMakeLists.txt index 74109f6..1b0a5e5 100644 --- a/test/CMakeLists.txt +++ b/test/CMakeLists.txt @@ -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()