[prev in list] [next in list] [prev in thread] [next in thread] 

List:       cmake
Subject:    Re: [CMake] How to build 2 targets from the same source,
From:       "Christian Ehrlicher" <Ch.Ehrlicher () gmx ! de>
Date:       2009-08-27 11:37:41
Message-ID: 20090827113741.142220 () gmx ! net
[Download RAW message or body]


> Von: "Marcel Loose" <loose@astron.nl>
> CC: cmake@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
_______________________________________________
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