Keep a frame pointer register on OSX - libunwind seems to crash when it's not present

This commit is contained in:
Pierre Bourdon 2013-03-29 09:58:30 -07:00
parent 194ada2481
commit 43d862bff9
1 changed files with 1 additions and 1 deletions

View File

@ -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)