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 fi

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, b

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

[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 on

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 makefi

[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 http://www.kitware.com/opensource/opensource.ht

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 (althoug

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,

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

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 wrote: >> >> On 30. Dec, 2009, at 17:32 , Jed Brown wrote: >> >>> On Mon, 28 Dec 2009 12:29:05 +0100, Pau Garcia i Quiles >>> wrote: I'm using CMake 2.8.0 on Linux. Yes, Michael is right: I

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 wrote: > > On 30. Dec, 2009, at 17:32 , Jed Brown wrote: > > > On Mon, 28 Dec 2009 12:29:05 +0100, Pau Garcia i Quiles > > wrote: > >> I'm using CMake 2.8.0 on Linux. Yes, Michael is right: I want it to > >> happen automagically. That was the wh

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 > 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 t

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 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 made since I may wan

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 Moulin

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 wrote: > > Hello, > > > > I am writin

Re: [CMake] Question about dependencies and paths

2009-12-30 Thread Eric Noulard
2009/12/30 Talin : > 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: >   # Link with

[CMake] CheckFunctionExists.c on windows

2009-12-30 Thread nikita kozlov
Hello, On windows you need to add some #include to be able to link with some libs. Example, if i want to check the existence of socket() function, i need to link with ws2_32.lib, but i need to include winsock2.h too for some defines purpose. a small cmake example: if(WIN32) set(CMAKE_REQU

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] CPack RPM: why not ---.rpm filename?

2009-12-30 Thread Eric Noulard
2009/12/30 Winfried Dobbe : > > When I build a RPM with current CVS CMAKE/CPack for project > the file name of the generated rpm is: > --Linux.rpm > > The common filename for an rpm is > ---.rpm > > Putting "Linux" in the file name doesn't provide much information because > I don't know any other

[CMake] CPack RPM: why not ---.rpm filename?

2009-12-30 Thread Winfried Dobbe
When I build a RPM with current CVS CMAKE/CPack for project the file name of the generated rpm is: --Linux.rpm The common filename for an rpm is ---.rpm Putting "Linux" in the file name doesn't provide much information because I don't know any other OS that uses the RPM package system.

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