cmake: fix prof build

It was a dev build actually...
This commit is contained in:
Gregory Hainaut 2016-04-02 00:10:50 +02:00
parent cc1756b8e5
commit eec3d02737
1 changed files with 2 additions and 2 deletions

View File

@ -173,7 +173,7 @@ endif()
# Note without the CMAKE_BUILD_TYPE options the value is still defined to ""
# Ensure that the value set by the User is correct to avoid some bad behavior later
#-------------------------------------------------------------------------------
if(NOT CMAKE_BUILD_TYPE MATCHES "Debug|Devel|Release")
if(NOT CMAKE_BUILD_TYPE MATCHES "Debug|Devel|Release|Prof")
set(CMAKE_BUILD_TYPE Devel)
message(STATUS "BuildType set to ${CMAKE_BUILD_TYPE} by default")
endif()
@ -283,7 +283,7 @@ elseif(CMAKE_BUILD_TYPE MATCHES "Release")
set(DEBUG_FLAG "-DNDEBUG")
elseif(CMAKE_BUILD_TYPE MATCHES "Prof")
# Keep frame pointer and debug information for profiler tool
set(DEBUG_FLAG "${DBG} -DNDEBUG")
set(DEBUG_FLAG "-g -fno-omit-frame-pointer -DNDEBUG")
endif()
if (USE_ASAN)