Commit 2443da52 authored by Joel Frederico's avatar Joel Frederico Committed by Jesse Beder
Browse files

Don't stomp on build flags (#635)

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.
parent 54fc4dad
...@@ -159,11 +159,6 @@ if(CMAKE_CXX_COMPILER_ID MATCHES "GNU" OR ...@@ -159,11 +159,6 @@ if(CMAKE_CXX_COMPILER_ID MATCHES "GNU" OR
set(CMAKE_BUILD_TYPE Release) set(CMAKE_BUILD_TYPE Release)
endif() 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 "") set(GCC_EXTRA_OPTIONS "")
# #
if(BUILD_SHARED_LIBS) if(BUILD_SHARED_LIBS)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment