Re: [CMake] compiling single source with different flags

2009-12-30 Thread Michael Wild
Hi On 30. Dec, 2009, at 1:48 , Bart wrote: Thanks for those suggestions, I was on that path, but I can not get it to work properly: foo$ cmake . -- Configuring done -- Generating done -- Build files have been written to: /home/bart/foo foo$ make Scanning dependencies of target foo

[CMake] CPack RPM: why not name-version-release-arch.rpm filename?

2009-12-30 Thread Winfried Dobbe
When I build a RPM with current CVS CMAKE/CPack for project projectname the file name of the generated rpm is: projectname-version-Linux.rpm The common filename for an rpm is projectname-version-release-architecture.rpm Putting Linux in the file name doesn't provide much information

Re: [CMake] CPack RPM: why not name-version-release-arch.rpm filename?

2009-12-30 Thread Eric Noulard
2009/12/30 Winfried Dobbe winfried_...@xmsnet.nl: When I build a RPM with current CVS CMAKE/CPack for project projectname the file name of the generated rpm is: projectname-version-Linux.rpm The common filename for an rpm is projectname-version-release-architecture.rpm Putting Linux in

Re: [CMake] [PATCH] FindRuby.cmake does not support version 1.9.1

2009-12-30 Thread Alexander Neundorf
On Tuesday 29 December 2009, Guilherme Balena Versiani wrote: Hello all, FindRuby.cmake from CMake 2.8.0 does not support Ruby 1.9.1, and has some errors on variable RUBY_NODOT_VERSION (it wasn't created resulting in _nothing_ in expansions). It follows attached a patch to be applied to

Re: [CMake] Question about dependencies and paths

2009-12-30 Thread Eric Noulard
2009/12/30 Talin viri...@gmail.com: I've got a problem that has been vexing me for several months: It seems that when I create a custom rule using add_custom_command, the DEPENDS clause sometimes works and sometimes doesn't, and I can't figure out why. Here's what my custom rule looks like:   

Re: [CMake] cmake file in build directory

2009-12-30 Thread Hicham Mouline
-Original Message- From: John Drescher [mailto:dresche...@gmail.com] Sent: 29 December 2009 23:16 To: Hicham Mouline Cc: cmake@cmake.org Subject: Re: [CMake] cmake file in build directory On Tue, Dec 29, 2009 at 6:01 PM, Hicham Mouline hic...@mouline.org wrote: Hello, I am

Re: [CMake] cmake file in build directory

2009-12-30 Thread Michael Jackson
On Dec 30, 2009, at 10:48 AM, Hicham Mouline wrote: -Original Message- From: John Drescher [mailto:dresche...@gmail.com] Sent: 29 December 2009 23:16 To: Hicham Mouline Cc: cmake@cmake.org Subject: Re: [CMake] cmake file in build directory On Tue, Dec 29, 2009 at 6:01 PM, Hicham

Re: [CMake] target_link_libraries: prefer static to dynamic

2009-12-30 Thread Jed Brown
On Mon, 28 Dec 2009 12:29:05 +0100, Pau Garcia i Quiles pgqui...@elpauer.org wrote: I'm using CMake 2.8.0 on Linux. Yes, Michael is right: I want it to happen automagically. That was the whole point of this thread :-) I would argue that FindXXX.cmake is the wrong place for the decision to be

Re: [CMake] target_link_libraries: prefer static to dynamic

2009-12-30 Thread Michael Wild
On 30. Dec, 2009, at 17:32 , Jed Brown wrote: On Mon, 28 Dec 2009 12:29:05 +0100, Pau Garcia i Quiles pgqui...@elpauer.org wrote: I'm using CMake 2.8.0 on Linux. Yes, Michael is right: I want it to happen automagically. That was the whole point of this thread :-) I would argue that

Re: [CMake] target_link_libraries: prefer static to dynamic

2009-12-30 Thread Jed Brown
On Wed, 30 Dec 2009 17:51:29 +0100, Michael Wild them...@gmail.com wrote: On 30. Dec, 2009, at 17:32 , Jed Brown wrote: On Mon, 28 Dec 2009 12:29:05 +0100, Pau Garcia i Quiles pgqui...@elpauer.org wrote: I'm using CMake 2.8.0 on Linux. Yes, Michael is right: I want it to happen

Re: [CMake] target_link_libraries: prefer static to dynamic

2009-12-30 Thread Michael Wild
On 30. Dec, 2009, at 18:02 , Jed Brown wrote: On Wed, 30 Dec 2009 17:51:29 +0100, Michael Wild them...@gmail.com wrote: On 30. Dec, 2009, at 17:32 , Jed Brown wrote: On Mon, 28 Dec 2009 12:29:05 +0100, Pau Garcia i Quiles pgqui...@elpauer.org wrote: I'm using CMake 2.8.0 on Linux. Yes,

Re: [CMake] cmake file in build directory

2009-12-30 Thread Hicham Mouline
-Original Message- From: Michael Jackson [mailto:mike.jack...@bluequartz.net] Sent: 30 December 2009 16:12 To: Hicham Mouline Cc: cmake@cmake.org Subject: Re: [CMake] cmake file in build directory On Dec 30, 2009, at 10:48 AM, Hicham Mouline wrote: -Original Message-

Re: [CMake] Dependency scanning for non-supported languages?

2009-12-30 Thread Alexander Neundorf
On Wednesday 30 December 2009, Talin wrote: What's the recommended way in CMake to do automated dependency generation for languages that aren't directly supported by CMake? Suppose my compiler generates an output file which contains a list of all the source files that were used to make it, and

Re: [CMake] Dependency scanning for non-supported languages?

2009-12-30 Thread Talin
I guess what I am asking is - if I modified my build script to generate a text file (Makefile, CMakeLists.txt or whatever) containing the dependencies, would CMake be able to use it? I know that with GNU makefiles there is a way to generate additional makefiles as part of the build process

[CMake] vs2008: is there a way to set the /VERSION: flag in linker/general

2009-12-30 Thread Hicham Mouline
Hi, Can the /VERSION:... flag in Linker/General only be added through compiler-specific options for vs2008 in a cmake file? Rds, ___ Powered by www.kitware.com Visit other Kitware open-source projects at

Re: [CMake] Dependency scanning for non-supported languages?

2009-12-30 Thread Alan W. Irwin
On 2009-12-30 10:42-0800 Talin wrote: I guess what I am asking is - if I modified my build script to generate a text file (Makefile, CMakeLists.txt or whatever) containing the dependencies, would CMake be able to use it? I know that with GNU makefiles there is a way to generate additional

[CMake] re http://www.itk.org/Bug/view.php?id=9594

2009-12-30 Thread Hicham Mouline
I didn't quite understand. Was there a workaround (besides setting the /openmp flag manually) ? Rds, ___ Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages

Re: [CMake] Dependency scanning for non-supported languages?

2009-12-30 Thread Talin
That is more along the lines of what I was looking for. Thanks! :) One further question: Using the technique you describe, the dependency file will need to be regenerated each time a source file changes - i.e. if I add a new import statement to a source file, the list of dependencies will change,

Re: [CMake] compiling single source with different flags

2009-12-30 Thread Michael Wild
Hi found the problem... Too much quoting, I'm sorry for that. See below Michael On 30. Dec, 2009, at 21:41 , Bart wrote: Hi Michael, I'm not quite sure if I'm getting the list building right, since if I add an extra source file to the project, it generates the int and long files, but

Re: [CMake] Dependency scanning for non-supported languages?

2009-12-30 Thread Alan W. Irwin
On 2009-12-30 12:30-0800 Talin wrote: That is more along the lines of what I was looking for. Thanks! :) One further question: Using the technique you describe, the dependency file will need to be regenerated each time a source file changes - i.e. if I add a new import statement to a source