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 ====================================================================== -- Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Follow this link to subscribe/unsubscribe: http://public.kitware.com/cgi-bin/mailman/listinfo/cmake-developers
