Re: [CMake] XCode: Detect debug build to enable /D_Debug or similar?

2011-11-25 Thread g...@novadsp.com
I forgot to aks - what is the recommended way of adding multiple definitions? i.e. /D_DEBUG /D_NO_GZIP? Thx++ On 24/11/2011 22:22, Michael Hertling wrote: On 11/24/2011 07:08 PM, g...@novadsp.com wrote: How can I do this? Specifically generating for XCode. My cmakefile has this: if

Re: [CMake] XCode: Detect debug build to enable /D_Debug or similar?

2011-11-25 Thread Michael Wild
On 11/25/2011 03:40 PM, g...@novadsp.com wrote: [ Fixed TOFU ] On 24/11/2011 22:22, Michael Hertling wrote: On 11/24/2011 07:08 PM, g...@novadsp.com wrote: How can I do this? Specifically generating for XCode. My cmakefile has this: if (${CMAKE_CFG_INTDIR} STREQUAL Debug) Message(We are

Re: [CMake] XCode: Detect debug build to enable /D_Debug or similar?

2011-11-25 Thread g...@novadsp.com
Thanks. On 25/11/2011 14:52, Michael Wild wrote: On 11/25/2011 03:40 PM, g...@novadsp.com wrote: [ Fixed TOFU ] On 24/11/2011 22:22, Michael Hertling wrote: On 11/24/2011 07:08 PM, g...@novadsp.com wrote: How can I do this? Specifically generating for XCode. -- Powered by

[CMake] XCode: Detect debug build to enable /D_Debug or similar?

2011-11-24 Thread g...@novadsp.com
How can I do this? Specifically generating for XCode. My cmakefile has this: if (${CMAKE_CFG_INTDIR} STREQUAL Debug) Message(We are generating/building debug code for ${this_target}) ADD_DEFINITIONS(/D_DEBUG) endif() But _DEBUG is never defined. This question comes up twice on StackOverflow.

Re: [CMake] XCode: Detect debug build to enable /D_Debug or similar?

2011-11-24 Thread Michael Hertling
On 11/24/2011 07:08 PM, g...@novadsp.com wrote: How can I do this? Specifically generating for XCode. My cmakefile has this: if (${CMAKE_CFG_INTDIR} STREQUAL Debug) Message(We are generating/building debug code for ${this_target}) ADD_DEFINITIONS(/D_DEBUG) endif() But _DEBUG is never

Re: [CMake] XCode: Detect debug build to enable /D_Debug or similar? [solved]

2011-11-24 Thread g...@novadsp.com
Michael, *thanks*. This works exactly as hoped with CMake 2.8.6 on Snow Leopard. Kudos. On 24/11/2011 22:22, Michael Hertling wrote: SET_DIRECTORY_PROPERTIES(PROPERTIES COMPILE_DEFINITIONS_DEBUG _DEBUG) -- Powered by www.kitware.com Visit other Kitware open-source projects at