[CMake] Toggling a Preprocessor macro for targets within a single project
andreas.pokorny at gmail.com
Fri Feb 20 04:50:28 EST 2009
Wow that was fast. Thanks a lot.
2009/2/20 Eric Noulard <eric.noulard at 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 understand why.. but DEFINE_SYMBOL did not work, but
did. So SET_TARGET_PROPERTIES is the sledgehammer for getting it done :)
More information about the CMake