Re: [CMake] Explanation....

2014-04-28 Thread Johannes Zarl
On Thursday, 24. April 2014, 17:34:40, Matthew Woehlke wrote: On 2014-04-24 04:53, Johannes Zarl wrote: On Wednesday, 23. April 2014, 18:54:39, Matthew Woehlke wrote: if ( ${arg} STREQUAL TOTO) set( TOTO evil) You sure? When I checked, this did not work. Are *you* sure? :-)

Re: [CMake] Explanation....

2014-04-28 Thread David Cole
I'm always happy to learn something new. How would you manage to make the following if statement trigger? set( arg value) if ( ${arg} STREQUAL TOTO ) message ( arg equals 'TOTO', and arg equals 'value' ) endif() By having a variable named value that you didn't know about... This

[CMake] sigil ($) in add custom command

2014-04-28 Thread j s
Through trial and error, I've found that I can do the following to escape a variable in a custom command. ADD_CUSTOM_COMMAND( ... COMMAND bash -c 'for i in ${FILES}\; do cpp -P -CC -DDPI_EXTERN $$i ${FILEEXTERN}.tmp \; done' ... ) Is this the proper way to escape a variable that needs to make

Re: [CMake] sigil ($) in add custom command

2014-04-28 Thread J Decker
foreach( file ${files} ) ADD_CUSTOM_COMMAND( ... COMMAND cpp -P -CC -DDPI_EXTERN ${file} ${FILEEXTERN}.tmp \; done' ) On Mon, Apr 28, 2014 at 9:05 AM, j s j.s4...@gmail.com wrote: Through trial and error, I've found that I can do the following to escape a variable in a custom command.

Re: [CMake] Explanation....

2014-04-28 Thread Matthew Woehlke
On 2014-04-28 04:58, Johannes Zarl wrote: I'm always happy to learn something new. How would you manage to make the following if statement trigger? set( arg value) if ( ${arg} STREQUAL TOTO ) message ( arg equals 'TOTO', and arg equals 'value' ) endif() Exactly how you would expect: set(

Re: [CMake] sigil ($) in add custom command

2014-04-28 Thread j s
The i On Mon, Apr 28, 2014 at 11:44 AM, J Decker d3c...@gmail.com wrote: foreach( file ${files} ) ADD_CUSTOM_COMMAND( ... COMMAND cpp -P -CC -DDPI_EXTERN ${file} ${FILEEXTERN}.tmp \; done' ) Unfortunately that doesn't work for me since all of the individual files are writing to the same

Re: [CMake] Are the [Project name]_SOURCE_DIR variables stored in the cache ?

2014-04-28 Thread Matthew Woehlke
On 2014-04-23 14:18, Glenn Coombs wrote: Are the [Project name]_SOURCE_DIR variables being automatically stored in the cmake cache? Running 'grep _SOURCE_DIR CMakeCache.txt' would answer this question. (And yes, they are.) -- Matthew -- Powered by www.kitware.com Please keep messages

Re: [CMake] sigil ($) in add custom command

2014-04-28 Thread J Decker
the commands are done sequentially... or you could invent fictional target names based on the filename, and chain current to prior (I guess if you used -j 4 or something the commands might not be sequential) is there a way to force 1 job? On Mon, Apr 28, 2014 at 10:43 AM, j s j.s4...@gmail.com

[cmake-developers] [CMake 0014899]: $TARGET_PROPERTY:prop with add_custom_target does not work

2014-04-28 Thread Mantis Bug Tracker
The following issue has been SUBMITTED. == http://public.kitware.com/Bug/view.php?id=14899 == Reported By:Kiron Assigned To:

Re: [cmake-developers] CMake identifies MacOSX10.7-Xcode43-ub as GNU, but it runs clang.

2014-04-28 Thread Brad King
On 04/26/2014 08:55 AM, Stephen Kelly wrote: Stephen Kelly wrote: Could this be because it is old clang which did not define __clang__? Apart from the misidentification, I don't understand how the WriteCompilerDetectionHeader test could have a different result than the compiler

Re: [cmake-developers] CMP0043 warnings everywhere

2014-04-28 Thread James Bigler
-Original Message- From: cmake-developers [mailto:cmake-developers-boun...@cmake.org] On Behalf Of Brad King Sent: Wednesday, April 23, 2014 11:06 AM To: cmake-developers@cmake.org Subject: Re: [cmake-developers] CMP0043 warnings everywhere On 04/23/2014 12:57 PM, James Bigler

[Cmake-commits] CMake branch, next, updated. v3.0.0-rc4-2584-g8723298

2014-04-28 Thread Peter Kuemmel
This is an automated email from the git hooks/post-receive script. It was generated because a ref change was pushed to the repository containing the project CMake. The branch, next has been updated via 8723298cd6c9874ead0462483b866c5988351263 (commit) via

[Cmake-commits] CMake branch, next, updated. v3.0.0-rc4-2586-g881bf7f

2014-04-28 Thread Stephen Kelly
This is an automated email from the git hooks/post-receive script. It was generated because a ref change was pushed to the repository containing the project CMake. The branch, next has been updated via 881bf7ffe1c85109bde5b28916ed6a802c47a850 (commit) via

[Cmake-commits] CMake branch, master, updated. v3.0.0-rc4-729-gc51d07d

2014-04-28 Thread Kitware Robot
20140428) +set(CMake_VERSION_PATCH 20140429) #set(CMake_VERSION_RC 1) --- Summary of changes: Source/CMakeVersion.cmake |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) hooks/post-receive -- CMake