[CMake] Toggling a Preprocessor macro for targets within a single project

2009-02-20 Thread Andreas Pokorny
Hi, We have a platfrom abstraction layer which uses a trace system. But one of the trace backends also uses the platform abstraction for network communication. So we want to build the required platform libs twice with and without tracing. Now I thought I can do the following with cmake:

Re: [CMake] Toggling a Preprocessor macro for targets within a single project

2009-02-20 Thread Eric Noulard
2009/2/20 Andreas Pokorny andreas.poko...@gmail.com: Hi, We have a platfrom abstraction layer which uses a trace system. But one of the trace backends also uses the platform abstraction for network communication. So we want to build the required platform libs twice with and without tracing.

Re: [CMake] Toggling a Preprocessor macro for targets within a single project

2009-02-20 Thread Andreas Pokorny
Hello, Wow that was fast. Thanks a lot. 2009/2/20 Eric Noulard eric.noul...@gmail.com: [...] SET_TARGET_PROPERTIES(PlatformLib PROPERTIES DEFINE_SYMBOL USE_TRACER) Then you shouldn't have to ADD_DEFINITIONS and REMOVE_DEFINITIONS? I do not

Re: [CMake] Toggling a Preprocessor macro for targets within a single project

2009-02-20 Thread Christian Ehrlicher
Von: Andreas Pokorny Hello, Wow that was fast. Thanks a lot. 2009/2/20 Eric Noulard eric.noul...@gmail.com: [...] SET_TARGET_PROPERTIES(PlatformLib PROPERTIES DEFINE_SYMBOL USE_TRACER) Then you shouldn't have to ADD_DEFINITIONS and

Re: [CMake] Toggling a Preprocessor macro for targets within a single project

2009-02-20 Thread Eric Noulard
2009/2/20 Christian Ehrlicher ch.ehrlic...@gmx.de: Von: Andreas Pokorny Hello, Wow that was fast. Thanks a lot. Obviously I was too fast reading the doc :-) [...] SET_TARGET_PROPERTIES(PlatformLib PROPERTIES DEFINE_SYMBOL USE_TRACER)

Re: [CMake] Toggling a Preprocessor macro for targets within a single project

2009-02-20 Thread Michael Jackson
On Feb 20, 2009, at 4:59 AM, Eric Noulard wrote: 2009/2/20 Christian Ehrlicher ch.ehrlic...@gmx.de: Von: Andreas Pokorny Hello, Wow that was fast. Thanks a lot. Obviously I was too fast reading the doc :-) [...] SET_TARGET_PROPERTIES(PlatformLib PROPERTIES

Re: [CMake] Toggling a Preprocessor macro for targets within a single project

2009-02-20 Thread Christian Ehrlicher
Michael Jackson schrieb: On Feb 20, 2009, at 4:59 AM, Eric Noulard wrote: 2009/2/20 Christian Ehrlicher ch.ehrlic...@gmx.de: Von: Andreas Pokorny Hello, Wow that was fast. Thanks a lot. Obviously I was too fast reading the doc :-) [...] SET_TARGET_PROPERTIES(PlatformLib PROPERTIES

Re: [CMake] Toggling a Preprocessor macro for targets within a single project

2009-02-20 Thread Michael Jackson
On Feb 20, 2009, at 8:51 AM, Christian Ehrlicher wrote: Michael Jackson schrieb: On Feb 20, 2009, at 4:59 AM, Eric Noulard wrote: 2009/2/20 Christian Ehrlicher ch.ehrlic...@gmx.de: Von: Andreas Pokorny Hello, Wow that was fast. Thanks a lot. Obviously I was too fast reading the doc :-)

Re: [CMake] Toggling a Preprocessor macro for targets within a single project

2009-02-20 Thread Christopher Harvey
Michael Jackson wrote: On Feb 20, 2009, at 8:51 AM, Christian Ehrlicher wrote: Michael Jackson schrieb: On Feb 20, 2009, at 4:59 AM, Eric Noulard wrote: 2009/2/20 Christian Ehrlicher ch.ehrlic...@gmx.de: Von: Andreas Pokorny Hello, Wow that was fast. Thanks a lot. Obviously I was too