mirror of
https://github.com/subsurface/subsurface.git
synced 2024-11-30 22:20:21 +00:00
Compile with -O2 optimization even in debug mode
The -O0 default is useless owing to extremely convoluted assembly. Moreover, many warnings depending on data analysis are ineffective with -O0. Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
This commit is contained in:
parent
5e116db1a1
commit
0f3bda4c44
1 changed files with 4 additions and 0 deletions
|
@ -100,6 +100,10 @@ endif()
|
|||
set (CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wall")
|
||||
set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall")
|
||||
|
||||
# optimize -O2 even for debug builds
|
||||
set (CMAKE_C_FLAGS_DEBUG "${CMAKE_C_FLAGS_DEBUG} -O2")
|
||||
set (CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG} -O2")
|
||||
|
||||
# pkgconfig for required libraries
|
||||
find_package(PkgConfig)
|
||||
include(cmake/Modules/pkgconfig_helper.cmake)
|
||||
|
|
Loading…
Reference in a new issue