cmake: add -fno-omit-frame-pointer to CXX Debug flags
authorBrendan Le Foll <brendan.le.foll@intel.com>
Thu, 10 Jul 2014 21:03:11 +0000 (22:03 +0100)
committerThomas Ingleby <thomas.c.ingleby@intel.com>
Thu, 10 Jul 2014 21:03:11 +0000 (22:03 +0100)
Signed-off-by: Thomas Ingleby <thomas.c.ingleby@intel.com>
CMakeLists.txt

index dee9b80..d1b8449 100644 (file)
@@ -3,7 +3,7 @@ project (mraa)
 
 FIND_PACKAGE (Threads)
 
-set (CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG} -Wall")
+set (CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG} -Wall -fno-omit-frame-pointer")
 set (CMAKE_CXX_FLAGS_RELEASE "${CMAKE_CXX_FLAGS_RELEASE} -Wall")
 
 # Appends the cmake/modules path to MAKE_MODULE_PATH variable.