[cmake-developers] [CMake 0012256]: cpack should sanitize component names

Mantis Bug Tracker mantis at public.kitware.com
Wed Jun 8 10:49:51 EDT 2011


The following issue has been SUBMITTED. 
====================================================================== 
http://cmake.org/Bug/view.php?id=12256 
====================================================================== 
Reported By:                Daniel Franke
Assigned To:                
====================================================================== 
Project:                    CMake
Issue ID:                   12256
Category:                   CPack
Reproducibility:            always
Severity:                   minor
Priority:                   normal
Status:                     new
====================================================================== 
Date Submitted:             2011-06-08 10:49 EDT
Last Modified:              2011-06-08 10:49 EDT
====================================================================== 
Summary:                    cpack should sanitize component names
Description: 
Working on an Windows NSIS installer with components. Consider:

  add_executable(targetname ...)
  install (targetname COMPONENT "foo/bar")
  cpackk_add_component("foo/bar" DISPLAY_NAME "blabla" ...)

this results in CPackConfig.cmake:

# Configuration for component "foo/bar"
SET(CPACK_COMPONENT_FOO/BAR_DISPLAY_NAME "blabla")

The component "foo/bar" does not show up in the installer afterwards. The
component names should probably be sanitised with regard to '/' and possibly
other characters not allowed in variable names?!

Observed with cmake 2.8.1 on Windows, NSIS version 2.46.
====================================================================== 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2011-06-08 10:49 Daniel Franke  New Issue                                    
======================================================================




More information about the cmake-developers mailing list