View Issue Details Jump to Notes ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0015212CMake(No Category)public2014-10-20 07:572015-04-06 09:07
Reportertoncho11 
Assigned To 
PrioritynormalSeverityminorReproducibilityhave not tried
StatusclosedResolutionno change required 
PlatformOSWindowsOS Version
Product VersionCMake 3.0.2 
Target VersionFixed in Version 
Summary0015212: FILE READ skips semicolumn ;
DescriptionEvery time I try to read a file with semicolumns, the resulted variable does not contain it.

Additional InformationIt is pretty annoying when you finally find a way to do what you want and then you encounter a bug ...
TagsNo tags attached.
Attached Files

 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.

 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


Copyright © 2000 - 2018 MantisBT Team