From 60b8d6e2fc0f942218d06d902023916f3ccdaeb7 Mon Sep 17 00:00:00 2001 From: Lars Melchior Date: Wed, 15 Apr 2020 09:20:18 +0200 Subject: [PATCH] treat warnings as errors on msvc as well --- 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()