[cmake-developers] [CMake 0013357]: CPACK macros in own copy of NSIS.template.in are still generated even though they are commented out

Mantis Bug Tracker mantis at public.kitware.com
Wed Jun 27 22:32:01 EDT 2012


The following issue has been SUBMITTED. 
====================================================================== 
http://public.kitware.com/Bug/view.php?id=13357 
====================================================================== 
Reported By:                David Sandberg
Assigned To:                
====================================================================== 
Project:                    CMake
Issue ID:                   13357
Category:                   CPack
Reproducibility:            always
Severity:                   minor
Priority:                   normal
Status:                     new
====================================================================== 
Date Submitted:             2012-06-27 22:32 EDT
Last Modified:              2012-06-27 22:32 EDT
====================================================================== 
Summary:                    CPACK macros in own copy of NSIS.template.in are
still generated even though they are commented out
Description: 
The parser of NSIS.template.in generates output for CPACK macros that are
commented out (for example @CPACK_NSIS_CREATE_ICONS@). The parser only comments
out the first row of the macro's output.

Here's an example:

CMakeLists.txt:
set(CPACK_COMPONENTS_ALL APP1 APP2)

NSIS.template.in (don't want it to install default icons because I need to use
arguments in the shortcut collected during installation):
;@CPACK_NSIS_CREATE_ICONS@ 

This will generate the following output in project.nsi:
;  CreateShortCut "$SMPROGRAMS\$STARTMENU_FOLDER\APP1.lnk"
"$INSTDIR\bin\APP1.exe"
  CreateShortCut "$SMPROGRAMS\$STARTMENU_FOLDER\APP2.lnk"
"$INSTDIR\bin\APP2.exe"


====================================================================== 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2012-06-27 22:32 David Sandberg New Issue                                    
======================================================================




More information about the cmake-developers mailing list