From 004d9dfa9d982374e69105c3c116430c574f78f6 Mon Sep 17 00:00:00 2001 From: Leon Styhre Date: Fri, 7 Aug 2020 12:29:13 +0200 Subject: [PATCH] Removed some unnecessary compiler flags. --- CMakeLists.txt | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index e792e8cee..e66f7885f 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -114,7 +114,7 @@ endif() # Set up compiler flags for debug or release builds. if(CMAKE_BUILD_TYPE MATCHES Debug) # Enable the C++11 standard and disable optimizations as it's a debug build. - set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11 -Wno-attributes -O0") + set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11 -O0") set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -O0") # If using Clang, then add additional debug data needed by GDB. @@ -126,7 +126,7 @@ if(CMAKE_BUILD_TYPE MATCHES Debug) else() # Enable the C++11 standard and enable optimizations as it's a release build. # Also disable the assert() macros and strip the binary. - set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11 -Wno-attributes -O2 -DNDEBUG") + set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11 -O2 -DNDEBUG") set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -O2 -s") endif() @@ -141,10 +141,6 @@ if(NOT WIN32) add_definitions(-DES_INSTALL_PREFIX="${CMAKE_INSTALL_PREFIX}") endif() -# Enable additional defines for the Debug build configuration. -set(CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG} -D_DEBUG") -set(CMAKE_C_FLAGS_DEBUG "${CMAKE_C_FLAGS_DEBUG} -D_DEBUG") - # Handle additional (required) include files for dependency packages. if(WIN32) set(WIN32_INCLUDE_DIR "NOT_DEFINED" CACHE FILEPATH "")