[cmake-developers] [CMake 0014719]: CMake does not escape strings when generating CPackConfig.cmake

Mantis Bug Tracker mantis at public.kitware.com
Sat Jan 25 15:21:06 EST 2014


The following issue has been SUBMITTED. 
====================================================================== 
http://www.cmake.org/Bug/view.php?id=14719 
====================================================================== 
Reported By:                Timo R.
Assigned To:                
====================================================================== 
Project:                    CMake
Issue ID:                   14719
Category:                   CMake
Reproducibility:            always
Severity:                   minor
Priority:                   normal
Status:                     new
====================================================================== 
Date Submitted:             2014-01-25 15:21 EST
Last Modified:              2014-01-25 15:21 EST
====================================================================== 
Summary:                    CMake does not escape strings when generating
CPackConfig.cmake
Description: 
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.
====================================================================== 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2014-01-25 15:21 Timo R.        New Issue                                    
======================================================================



More information about the cmake-developers mailing list