From 6542b72a7191468993973ce465fd7230770fea16 Mon Sep 17 00:00:00 2001 From: nealhow <69689365+nealhow@users.noreply.github.com> Date: Fri, 2 Oct 2020 07:33:45 -0400 Subject: [PATCH] Fix MSVC warnings (#104) /WX Treats all compiler warnings as errors. It should be disabled to prevent compilation issues with CMake on Windows. /W4 displays level 1, level 2, and level 3 warnings, and all level 4 (informational) warnings that aren't off by default. /W3 is the default setting in the IDE and should be enforced to prevent issues with CMake. --- src/CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index a377ea4..b9370a6 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -117,4 +117,4 @@ target_compile_options(cppast PRIVATE $<$: -Wno-noexcept-type> # MSVC warnings $<$: - /WX /W4>) + /W3>)