From f25087fa300f5b91478d11392758024eae4da11d Mon Sep 17 00:00:00 2001 From: Joel Frederico <458871+joelfrederico@users.noreply.github.com> Date: Mon, 22 Oct 2018 19:12:14 -0700 Subject: [PATCH] Don't stomp on build flags Let CMake handle the default optimizations for various configurations. We don't need to override them. In fact, overriding them makes it impossible for users to override them themselves. --- CMakeLists.txt | 5 ----- 1 file changed, 5 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 154230a..129ca48 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -158,11 +158,6 @@ if(CMAKE_CXX_COMPILER_ID MATCHES "GNU" OR set(CMAKE_BUILD_TYPE Release) endif() # - set(CMAKE_CXX_FLAGS_RELEASE "-O2") - set(CMAKE_CXX_FLAGS_RELWITHDEBINFO "-O2 -g") - set(CMAKE_CXX_FLAGS_DEBUG "-g") - set(CMAKE_CXX_FLAGS_MINSIZEREL "-Os") - # set(GCC_EXTRA_OPTIONS "") # if(BUILD_SHARED_LIBS)