Re: [CMake] Explanation....

2014-04-16 Thread Johannes Zarl
Hi, On Monday, 14. April 2014, 19:23:19, Theodore Papadopoulo wrote: > > if ("${arg}" STREQUAL "TOTO") -> if ("TOTO" STREQUAL "TOTO") -> if > > (B STREQUAL B) > > What I do not follow is why there is an implicit evaluation of "TOTO" > into "B" (in both this case or the next I explicitely asked fo

Re: [CMake] Explanation....

2014-04-16 Thread Rolf Eike Beer
Am 16.04.2014 11:39, schrieb Johannes Zarl: Hi, On Monday, 14. April 2014, 19:23:19, Theodore Papadopoulo wrote: > if ("${arg}" STREQUAL "TOTO") -> if ("TOTO" STREQUAL "TOTO") -> if > (B STREQUAL B) What I do not follow is why there is an implicit evaluation of "TOTO" into "B" (in both this ca

Re: [CMake] Explanation....

2014-04-16 Thread Johannes Zarl
On Wednesday, 16. April 2014, 12:03:30, Rolf Eike Beer wrote: > > Instead of ``"${var}" STREQUAL "VALUE"'', write: > > > > IF ( var MATCHES "^VALUE$" ) > > NO, please don't! I try hard to kill all those as it requires > compiling a regular expression for a simple string match. Just change it

Re: [CMake] [CMake BUG] CMake (2.8.12.2) adding extraneous libraries at the end of the link command

2014-04-16 Thread Zaak Beekman
I have figured out what the link command should look like on Mac, in order that gfortran48 builds a mixed language (C & Fortran, main program in Fortran) binary that is statically linked to all required gcc libraries. The link line should look like this: gfortran48 -static-libgfortran -lgfortran -

[CMake] get_directory_property and get_property

2014-04-16 Thread James Bigler
I see that I can get the value of a variable from a directory using: get_directory_property(sub1_val1 DIRECTORY sub1 DEFINITION val1) Can I do the same thing with get_property? I see a VARIABLE entry, but I can't use that with the DIRECTORY indication. By the way what are the properties on VARI