[prev in list] [next in list] [prev in thread] [next in thread]
List: cmake
Subject: Re: [CMake] Toggling a Preprocessor macro for targets within
From: "Christian Ehrlicher" <Ch.Ehrlicher () gmx ! de>
Date: 2009-02-20 9:56:47
Message-ID: 20090220095647.14720 () gmx ! net
[Download RAW message or body]
> Von: Andreas Pokorny
> Hello,
> Wow that was fast. Thanks a lot.
>
> 2009/2/20 Eric Noulard <eric.noulard@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
> COMPILE_FLAGS -DUSE_TRACER
> did. So SET_TARGET_PROPERTIES is the sledgehammer for getting it done :)
>
DEFINE_SYMBOL only works for shared libraries. see cmake documentation: \
"DEFINE_SYMBOL sets the name of the preprocessor symbol defined when compiling \
sources in a shared library."
Christian
--
Jetzt 1 Monat kostenlos! GMX FreeDSL - Telefonanschluss + DSL
für nur 17,95 Euro/mtl.!* http://dsl.gmx.de/?ac=OM.AD.PD003K11308T4569a
_______________________________________________
Powered by www.kitware.com
Visit other Kitware open-source projects at \
http://www.kitware.com/opensource/opensource.html
Please keep messages on-topic and check the CMake FAQ at: \
http://www.cmake.org/Wiki/CMake_FAQ
Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic