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 : >> Von: Andreas Pokorny >> Hello, >> Wow that was fast. Thanks a lot. >

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 : Von: Andreas Pokorny Hello, Wow that was fast. Thanks a lot. Obviously I was too fast reading the doc :-) [...] SET_TARGET_

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 : Von: Andreas Pokorny Hello, Wow that was fast. Thanks a lot. >> >> Obviously I was too fast reading the doc :-) >> > [...] > > SET_TARGET_PROPERTIES(Platfo

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 : 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_S

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

2009-02-20 Thread Eric Noulard
2009/2/20 Christian Ehrlicher : >> 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 Christian Ehrlicher
> Von: Andreas Pokorny > Hello, > Wow that was fast. Thanks a lot. > > 2009/2/20 Eric Noulard : > > [...] > > > > SET_TARGET_PROPERTIES(PlatformLib PROPERTIES > > DEFINE_SYMBOL USE_TRACER) > > > > Then you shouldn't have to ADD_DEFINITIONS and REMOVE_DEF

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 : > [...] > > SET_TARGET_PROPERTIES(PlatformLib PROPERTIES > DEFINE_SYMBOL USE_TRACER) > > Then you shouldn't have to ADD_DEFINITIONS and REMOVE_DEFINITIONS? I do not understand why.. but D

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

2009-02-20 Thread Eric Noulard
2009/2/20 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

[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: PROJECT(Pa