/-- Around 10 PM on [05/18/06] ([EMAIL PROTECTED]) said --
That's nice already - changing 3 times the conditions in a if-else-endif
construct was quite boring :-)
Do you plan to also remove the parenthesis in a future release ?
Gaetan
My patch also made any unparenthesized cmake
Do you plan to also remove the parenthesis in a future release ?
Gaetan
My patch also made any unparenthesized cmake macro/function call
FOO
equivalent to the same call without any arguments
FOO()
This required some changes to the parser/scanner. I'd be happy to
regenerate it off
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Ken Martin wrote:
I incorporated some changes from Lloyd's patch and committed it to CVS.
Basically if a project sets CMAKE_ALLOW_LOOSE_LOOP_CONSTRUCTS on then you
can leave off the arguments for the endif endwhile, else and endforeach
commands.
I incorporated some changes from Lloyd's patch and committed it to CVS.
Basically if a project sets CMAKE_ALLOW_LOOSE_LOOP_CONSTRUCTS on then you
can leave off the arguments for the endif endwhile, else and endforeach
commands. For example:
if (FOO AND BAR)
else ()
endif ()
The parenthesis are
On Thursday 18 May 2006 19:56, Ken Martin wrote:
I incorporated some changes from Lloyd's patch and committed it to CVS.
Basically if a project sets CMAKE_ALLOW_LOOSE_LOOP_CONSTRUCTS on then you
can leave off the arguments for the endif endwhile, else and endforeach
commands. For example:
if
Having spent all day hacking a massive project using cmake, I wonder...
could this
FOREACH (foo ${foolist})
IF (${foo} STREQUAL bar)
...
ELSE (${foo} STREQUAL bar)
...
ENDIF (${foo} STREQUAL bar)
ENDFOREACH (foo ${foolist})
change to this:
FOREACH (foo ${foolist})