Improve CMAKE_BUILD_TYPE handling
This commit is contained in:
parent
2592e50f83
commit
c474903549
@ -16,8 +16,12 @@ if(CMAKE_COMPILER_IS_GNUCXX)
|
||||
|
||||
if(CMAKE_BUILD_TYPE STREQUAL "Release")
|
||||
set(SQ_FLAGS ${SQ_FLAGS} -O3)
|
||||
else()
|
||||
set(SQ_FLAGS ${SQ_FLAGS} -pg -pie -gstabs -g3)
|
||||
elseif(CMAKE_BUILD_TYPE STREQUAL "RelWithDebInfo")
|
||||
set(SQ_FLAGS ${SQ_FLAGS} -O3 -g)
|
||||
elseif(CMAKE_BUILD_TYPE STREQUAL "MinSizeRel")
|
||||
set(SQ_FLAGS ${SQ_FLAGS} -Os)
|
||||
elseif(CMAKE_BUILD_TYPE STREQUAL "Debug")
|
||||
set(SQ_FLAGS ${SQ_FLAGS} -pg -pie -gstabs -g3 -Og)
|
||||
endif()
|
||||
|
||||
if(CMAKE_VERSION VERSION_GREATER 3)
|
||||
|
Loading…
x
Reference in New Issue
Block a user