diff options
author | Jared Jones <jjones@uvora.com> | 2015-05-10 01:46:23 -0500 |
---|---|---|
committer | Jared Jones <jjones@uvora.com> | 2015-05-10 01:46:23 -0500 |
commit | af99d0a597e74aff1a9adaed67cfe6b2ae0fb9a2 (patch) | |
tree | 5aad1d6df71bf107249cbd23363ba82ca87932eb | |
parent | ad0cc83c842231fedd1eb9afe962176c17dc72ff (diff) |
CMake OS X: Fixed Debug Mode for Xcode
On newer versions of Xcode, the preprocessor macro #DEBUG is not defined by default. In order to set the debug flag it has to be set manually. If this does not happen then in the "Common.h" file the preprocessor will assume that we are building under a release mode instead of the debug mode.
Ref: ad0cc83c842231fedd1eb9afe962176c17dc72ff
-rw-r--r-- | cmake/compiler/clang/settings.cmake | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/cmake/compiler/clang/settings.cmake b/cmake/compiler/clang/settings.cmake index 98f893987ec..a449551a357 100644 --- a/cmake/compiler/clang/settings.cmake +++ b/cmake/compiler/clang/settings.cmake @@ -17,3 +17,4 @@ endif() # -Wno-narrowing needed to suppress a warning in g3d # -Wno-deprecated-register is needed to suppress 185 gsoap warnings on Unix systems. set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11 -Wno-narrowing -Wno-deprecated-register") +set(CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG} -DDEBUG=1") |