From: =?utf-8?q?Timo_R=C3=B6hling?= <roehling@debian.org>
Date: Tue, 27 Aug 2024 16:18:39 +0200
Subject: Do not set warnings as errors

---
 CMakeLists.txt | 14 --------------
 1 file changed, 14 deletions(-)

diff --git a/CMakeLists.txt b/CMakeLists.txt
index c2e1c58..65d1373 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -183,20 +183,6 @@ if (SANITIZER)
     endif()
 endif()
 
-###############################################################################
-# Set warnings as errors if the thread sanitizer is not being used
-###############################################################################
-string(FIND ${CMAKE_CXX_FLAGS} "-fsanitize=thread" SANITIZER_THREAD)
-if (${SANITIZER_THREAD} EQUAL -1)
-    message(STATUS "Setting warnings as errors...")
-    if(MSVC OR MSVC_IDE)
-        add_compile_options(/WX)
-    else()
-        set(CMAKE_CXX_FLAGS
-            "${CMAKE_CXX_FLAGS} -Werror")
-    endif()
-endif()
-
 ###############################################################################
 # Installation paths
 ###############################################################################
