View Issue Details [ Jump to Notes ] | [ Print ] | ||||||||
ID | Project | Category | View Status | Date Submitted | Last Update | ||||
0015212 | CMake | (No Category) | public | 2014-10-20 07:57 | 2015-04-06 09:07 | ||||
Reporter | toncho11 | ||||||||
Assigned To | |||||||||
Priority | normal | Severity | minor | Reproducibility | have not tried | ||||
Status | closed | Resolution | no change required | ||||||
Platform | OS | Windows | OS Version | ||||||
Product Version | CMake 3.0.2 | ||||||||
Target Version | Fixed in Version | ||||||||
Summary | 0015212: FILE READ skips semicolumn ; | ||||||||
Description | Every time I try to read a file with semicolumns, the resulted variable does not contain it. | ||||||||
Additional Information | It is pretty annoying when you finally find a way to do what you want and then you encounter a bug ... | ||||||||
Tags | No tags attached. | ||||||||
Attached Files | |||||||||
Relationships | |
Relationships |
Notes | |
(0037051) Brad King (manager) 2014-10-20 09:06 |
Without a code example it is difficult to know what you're doing, but I suspect you're trying file(READ myfile.txt myvar) message(${myvar}) The unquoted argument gets split into multiple arguments on ; and then message() displays each argument consecutively. See the cmake-language(7) manual: http://www.cmake.org/cmake/help/v3.0/manual/cmake-language.7.html [^] for details on that. You can use quotes to make sure an argument is treated as a single value: message("${myvar}") |
(0038428) Robert Maynard (manager) 2015-04-06 09:07 |
Closing resolved issues that have not been updated in more than 4 months. |
Notes |
Issue History | |||
Date Modified | Username | Field | Change |
2014-10-20 07:57 | toncho11 | New Issue | |
2014-10-20 09:06 | Brad King | Note Added: 0037051 | |
2014-10-22 14:01 | Brad King | Status | new => resolved |
2014-10-22 14:01 | Brad King | Resolution | open => no change required |
2015-04-06 09:07 | Robert Maynard | Note Added: 0038428 | |
2015-04-06 09:07 | Robert Maynard | Status | resolved => closed |
Issue History |
Copyright © 2000 - 2018 MantisBT Team |