[CMake] bug?
John Biddiscombe
jbiddiscombe at bluewin.ch
Tue Mar 8 15:00:47 EST 2005
If you save the following lines as a text file
----begin text file---
This is text
with a line with a;
at the end
---end text ----
and then do this
FILE(READ ${FILENAME} CONTENTS)
FOREACH(line ${CONTENTS})
IF( "${line}" MATCHES ";" )
MESSAGE("Got one")
ENDIF( "${line}" MATCHES ";" )
ENDFOREACH(line)
you don't get a match for the line with the ; at the end. Is this
intentional. I've noticed that cmake treats ; chars as eol delimiters in
expressions. Its quite hard to do anything with files with ; in when you
need them.
bug?
or feature?
thanks
JB
More information about the CMake
mailing list