[CMake] CMake: Problem with reading files with semicolons
William A. Hoffman
billlist at nycap.rr.com
Wed Jan 25 13:55:10 EST 2006
At 01:21 PM 1/25/2006, wedekind wrote:
>Hi all,
>
>a quick question for CMake-gurus: Why do all semicolons disappear after
>reading a file using
>
>FILE(READ c:/some/file.txt TheFile)
>
>???
>
>If I print the output variable TheFile like this:
>
>MESSAGE(${TheFile})
Try:
MESSAGE("${TheFile}")
; is a variable separator in CMake, so the message command will
not print them unless the variable is quoted.
-Bill
More information about the CMake
mailing list