From 7eae64f8a6caa1462ce285ef1f55109a1aa5d5db Mon Sep 17 00:00:00 2001 From: jadebenn Date: Mon, 8 Apr 2024 20:18:46 -0500 Subject: [PATCH] disable /WX on MSVC --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index a03b7e41..b46503fc 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -253,7 +253,7 @@ endif() # Set warning flags if(MSVC) - add_compile_options("/WX") + add_compile_options("/W4") elseif(CMAKE_CXX_COMPILER_ID MATCHES "Clang|GNU") add_compile_options("-Wuninitialized" "-Wold-style-cast" "-Werror") else()