From 43d862bff93741148e029c118db6ed66cb152541 Mon Sep 17 00:00:00 2001 From: Pierre Bourdon Date: Fri, 29 Mar 2013 09:58:30 -0700 Subject: [PATCH] Keep a frame pointer register on OSX - libunwind seems to crash when it's not present --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 5b2f436917..13688ae5fe 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -247,7 +247,7 @@ if(CMAKE_BUILD_TYPE STREQUAL Debug) set(wxWidgets_USE_DEBUG ON CACHE BOOL "Use wxWidgets Debugging") endif(CMAKE_BUILD_TYPE STREQUAL Debug) -if(CMAKE_BUILD_TYPE STREQUAL Release) +if(CMAKE_BUILD_TYPE STREQUAL Release AND NOT APPLE) add_definitions(-fomit-frame-pointer) endif(CMAKE_BUILD_TYPE STREQUAL Release)