From 0796bdbee61fbc205d60d4d88e8e9bc5fd077fd0 Mon Sep 17 00:00:00 2001 From: Martin Date: Sun, 6 Feb 2022 14:29:22 +0100 Subject: [PATCH] Disable treating warnings as error with MSVC --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 61b7a6c..6996492 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -17,7 +17,7 @@ else() # set(CMAKE_VISIBILITY_INLINES_HIDDEN YES) if (MSVC) - set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} /W3 /WX /Zi /permissive-") + set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} /W3 /Zi /permissive-") else () set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wshadow -Wformat=2 -Wall -Wno-overlength-strings -pedantic") endif ()