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

Re: [CMake] compiling single source with different flags

2009-12-29 Thread Bart
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 make[2]: *** No rule to make target ` /home/bart/foo/foo_i

[CMake] compiling single source with different flags

2009-12-29 Thread Bart
Hi, I'm trying to find a way to build a library with two different instances of the same source file. for example I would like to compile foo.c with -DDINT into foo_int.o and with -DDLONG into foo_long.o and have both objects added to the same library libfoo.a I have experimented with custom co

Re: [CMake] compiling single source with different flags

2009-12-29 Thread Michael Wild
On 29. Dec, 2009, at 21:44 , Eric Noulard wrote: > 2009/12/29 Richard Wackerbarth : >> Not as a "real" solution, but more as a "workaround", you could create a >> "derived source file" which is just a copy of the source file and then you >> would have two separate files to be compiled with the

Re: [CMake] compiling single source with different flags

2009-12-29 Thread Eric Noulard
2009/12/29 Richard Wackerbarth : > Not as a "real" solution, but more as a "workaround", you could create a > "derived source file" which is just a copy of the source file and then you > would have two separate files to be compiled with the appropriate flags. That's one solution, see below for m

Re: [CMake] compiling single source with different flags

2009-12-29 Thread Richard Wackerbarth
Not as a "real" solution, but more as a "workaround", you could create a "derived source file" which is just a copy of the source file and then you would have two separate files to be compiled with the appropriate flags. On Dec 29, 2009, at 2:22 PM, Bart wrote: > Hi, > > I'm trying to find a

[CMake] compiling single source with different flags

2009-12-29 Thread Bart
Hi, I'm trying to find a way to build a library with two different instances of the same source file. for example I would like to compile foo.c with -DDINT into foo_int.o and with -DDLONG into foo_long.o and have both objects added to the same library libfoo.a I have experimented with custom co