|
Notes |
|
|
(0019065)
|
|
Bill Hoffman
|
|
2010-01-08 16:19
|
|
|
How did you "look" at the variable? |
|
|
|
(0019066)
|
|
peastman
|
|
2010-01-08 16:23
|
|
|
In several different ways: message(), using configure_file() to insert it into a file, etc. After some experimentation, I've discovered that file(STRINGS ...) does not remove semicolons. So I'm quite certain the problem is not in how I'm looking at it. Loading the same file twice, once with READ and once with STRINGS, shows the semicolons in the second one but not the first one. |
|
|
|
(0019068)
|
|
Bill Hoffman
|
|
2010-01-08 16:27
|
|
You want quotes around the var:
foo.cmake
file(READ ${CMAKE_SOURCE_DIR}/a.txt VAR)
message("${VAR}")
cmake -P foo.cmake
This is some text;with some more; stuff |
|
|
|
(0019071)
|
|
Bill Hoffman
|
|
2010-01-08 16:36
|
|
|
|
|
(0041637)
|
|
Kitware Robot
|
|
2016-06-10 14:27
|
|
Resolving issue as `moved`.
This issue tracker is no longer used. Further discussion of this issue may take place in the current CMake Issues page linked in the banner at the top of this page. |
|