MantisBT - CMake
View Issue Details
0014719CMakeCMakepublic2014-01-25 15:212016-06-10 14:31
Timo R. 
Kitware Robot 
normalminoralways
closedmoved 
amd64Windows7
CMake 2.8.12.1 
 
0014719: CMake does not escape strings when generating CPackConfig.cmake
On Windows, the NSIS install generator needs native path separators. It just removes "/" entirely. So i used file(TO_NATIVE_PATH) to convert my paths, but got a CMake parser on package generation error as a result.

The reason for this is, that cmake does not escape the strings it writes into the generated CPackConfig.cmake, so it contains things like

SET(CPACK_PACKAGE_EXECUTABLES "bin\64bit\binary;Binary")

where it should be

SET(CPACK_PACKAGE_EXECUTABLES "bin\\64bit\\binary;Binary")


This propably applies to all variables it writes there.
No tags attached.
Issue History
2014-01-25 15:21Timo R.New Issue
2016-06-10 14:29Kitware RobotNote Added: 0042469
2016-06-10 14:29Kitware RobotStatusnew => resolved
2016-06-10 14:29Kitware RobotResolutionopen => moved
2016-06-10 14:29Kitware RobotAssigned To => Kitware Robot
2016-06-10 14:31Kitware RobotStatusresolved => closed

Notes
(0042469)
Kitware Robot   
2016-06-10 14:29   
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.