Re: [CMake] (no subject)

2011-06-12 Thread Michael Hertling
On 06/06/2011 10:32 PM, dfurt...@cox.net wrote: > Does CMake provide a way to get the list of objects going into a given > target? I need such a list for a PRE_LINK custom command. With the Makefile generators, you might use the RULE_LAUNCH_COMPILE target property combined with a shell script to

Re: [CMake] How to set a preprocessor define for all build configurations except one ?

2011-06-12 Thread Michael Hertling
On 06/07/2011 07:05 PM, Glenn Coombs wrote: > I want to have a preprocessor symbol (GEN_OUTFILES) defined for all build > configurations except one (ReleaseNoOutfiles). Before I added the > ReleaseNoOutfiles configuration I just had this line in my top level > CMakeLists.txt: > > add_definitions(

Re: [CMake] Release of new Debian Source Package Generator

2011-06-12 Thread Pau Garcia i Quiles
Hi, Why is this not part of CMake? Creating source .deb packages is much, much more interesting that creating binary packages. On Fri, Apr 22, 2011 at 8:16 PM, Rosen Diankov wrote: > Hi all, > > There was a problem with the previous script on certain versions of > tar. I'm attaching a new file

Re: [CMake] How to set a preprocessor define for all build configurations except one ?

2011-06-12 Thread Glenn Coombs
I don't think CMAKE_BUILD_TYPE is used by the Visual Studio generators so that would only work for Makefile based build systems. I need a solution that works for both Visual Studio on Windows and Makefiles on Linux. On 12 June 2011 21:32, Raphael Kubo da Costa wrote: > Glenn Coombs > writes: >

Re: [CMake] How to set a preprocessor define for all build configurations except one ?

2011-06-12 Thread Raphael Kubo da Costa
Glenn Coombs writes: > Is there a more elegant solution that I am missing ? Ideally something > like: > > add_definitions(CONFIG=Debug;Release;RelWithDebInfo;MinSizeRel > -DGEN_OUTFILES) > > which I know doesn't exist but I really wish it did :-) Isn't it OK to just do something like: if (NO

Re: [CMake] Support for Custom LANG in CMAKE (CUDA and general case)

2011-06-12 Thread James Bigler
On Tue, Jun 7, 2011 at 12:50 PM, t m wrote: > Hi > > I've two topics related to the support for custom lang in cmake. I > hope you can help me. > > 1) Does anyone knows plan about merge the following feature related to > the CUDA: http://public.kitware.com/Bug/view.php?id=11887 > > I'm in the pro

Re: [CMake] Managed C++/CLI, default build flags and configurations

2011-06-12 Thread Michael Hertling
On 06/07/2011 07:29 PM, David Hunter wrote: > Hi, > > I have a number of projects which contain mostly sub-directories with > standard C++. I currently build all this stuff on Linux and Windows > and everything is great. However I have a couple of directories in > these projects which contain mana