diff options
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r-- | CMakeLists.txt | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index a91b5a3bdac..313ea23c71f 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1646,8 +1646,8 @@ elseif(APPLE) set(EXETYPE MACOSX_BUNDLE) - set(CMAKE_C_FLAGS_DEBUG "-fno-strict-aliasing -g") - set(CMAKE_CXX_FLAGS_DEBUG "-fno-strict-aliasing -g") + set(CMAKE_C_FLAGS_DEBUG "-O0 -fno-strict-aliasing -g") + set(CMAKE_CXX_FLAGS_DEBUG "-O0 -fno-strict-aliasing -g") if(CMAKE_OSX_ARCHITECTURES MATCHES "x86_64" OR CMAKE_OSX_ARCHITECTURES MATCHES "i386") set(CMAKE_CXX_FLAGS_RELEASE "-O2 -mdynamic-no-pic -msse -msse2 -msse3 -mssse3") set(CMAKE_C_FLAGS_RELEASE "-O2 -mdynamic-no-pic -msse -msse2 -msse3 -mssse3") |