Re: [CMake] Settings different flags in sub projects

2014-08-03 Thread Magnus Therning
On Sun, Aug 03, 2014 at 05:46:40PM -0500, David Zemon wrote: > Hello, > > For the simple case of three directories and two projects - /root, /root/p1, > and /root/p2 - I would like to set some common flags for both projects and > then other flags should be independent. For instance, p1 should be c

[CMake] Settings different flags in sub projects

2014-08-03 Thread David Zemon
Hello, For the simple case of three directories and two projects - /root, /root/p1, and /root/p2 - I would like to set some common flags for both projects and then other flags should be independent. For instance, p1 should be compiled with "-std=c99 -Os" and p2 should be compiled with "-std=c

Re: [CMake] Spaces in a command

2014-08-03 Thread Glenn Coombs
Not for me it doesn't: $ make VERBOSE=yes /usr/bin/cmake -H/home/glenn/src/cmake-test -B/home/glenn/src/cmake-test/build --check-build-system CMakeFiles/Makefile.cmake 0 /usr/bin/cmake -E cmake_progress_start /home/glenn/src/cmake-test/build/CMakeFiles /home/glenn/src/cmake-test/build/CMakeFiles/p

Re: [CMake] Defining a function in a macro

2014-08-03 Thread David Cole via CMake
Ouch... my brain hurts... Another idea would be to write the "generated functions" out to a file, and then, after all functions are written to the file, include the file. Might result in something you can actually look at in an editor (and make sense of) without your brain hurting too much, t