From 046a3649ed21d02a41c68d8d6ed23312a0c1df66 Mon Sep 17 00:00:00 2001 From: Zach H Date: Mon, 10 May 2021 11:32:23 -0400 Subject: [PATCH] Revert "add werror flags when making a debug build using llvm (#4338)" (#4343) This reverts commit 890810f5b96d6c7008c65a52faf054349a6ccc3a. Co-authored-by: ebbit1q --- CMakeLists.txt | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 38759aad..e4838bb6 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -134,11 +134,7 @@ ELSEIF (CMAKE_COMPILER_IS_GNUCXX) ELSE() # other: osx/llvm, bsd/llvm set(CMAKE_CXX_FLAGS_RELEASE "-O2") - if(WARNING_AS_ERROR) - set(CMAKE_CXX_FLAGS_DEBUG "-g -O0 -Wall -Wextra -Werror") - else() - set(CMAKE_CXX_FLAGS_DEBUG "-g -O0 -Wall -Wextra") - endif() + set(CMAKE_CXX_FLAGS_DEBUG "-g -O0") ENDIF() # GNU systems need to define the Mersenne exponent for the RNG to compile w/o warning