From 7a374ff1797ba3b482391daafbdb0f82621f710c Mon Sep 17 00:00:00 2001 From: LaGrunge Date: Fri, 23 Aug 2019 12:59:28 +0300 Subject: [PATCH] [build] Add Release With Debug Info possibility --- CMakeLists.txt | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 2a97423f5d..bc60227582 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -46,6 +46,11 @@ if ("${CMAKE_BUILD_TYPE}" STREQUAL "Debug") add_definitions(-DDEBUG) elseif ("${CMAKE_BUILD_TYPE}" STREQUAL "Release") add_definitions(-DRELEASE) +elseif ("${CMAKE_BUILD_TYPE}" STREQUAL "RelWithDebInfo") + add_definitions(-DRELEASE) + add_compile_options( + "-fno-omit-frame-pointer" + ) else() message(FATAL_ERROR "Unknown build type: " ${CMAKE_BUILD_TYPE}) endif()