[CMake] How to build 2 targets from the same source, differing in -D_SWITCHES_ only
Christian Ehrlicher
Ch.Ehrlicher at gmx.de
Thu Aug 27 07:37:41 EDT 2009
> Von: "Marcel Loose" <loose at astron.nl>
> CC: cmake at cmake.org
> Betreff: Re: [CMake] How to build 2 targets from the same source, differing in -D_SWITCHES_ only
> Hi Eike,
>
> I think the only safe and reliable way to do this is create several
> build directories, e.g. build/type_1 and build/type_2.
> When running cmake in build/type_1, you should add -D_TYPE1_ to the
> preprocessor flags; same for build/type_2.
>
Why? Does SET_TARGET_PROPERTIES() with COMPILE_FLAGS not work?
Christian
--
Neu: GMX Doppel-FLAT mit Internet-Flatrate + Telefon-Flatrate
für nur 19,99 Euro/mtl.!* http://portal.gmx.net/de/go/dsl02
More information about the CMake
mailing list