View Issue Details Jump to Notes ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0015005CMakeCPackpublic2014-07-03 05:172016-06-10 14:31
ReporterAlex Turbov 
Assigned ToKitware Robot 
PrioritynormalSeverityminorReproducibilityalways
StatusclosedResolutionmoved 
PlatformOSOS Version
Product VersionCMake 2.8.12.2 
Target VersionFixed in Version 
Summary0015005: Take in account CPACK_INSTALL_SCRIPT when running `cpack`
DescriptionAccording lines 226-258 of the Source/CPack/cmCPackGenerator.cxx file, there are few ways to preinstall files to be packed:
1) via CPACK_INSTALL_COMMANDS variable [InstallProjectViaInstallCommands() function]
2) CPACK_INSTALL_SCRIPT [InstallProjectViaInstallScript()]
3) CPACK_INSTALLED_DIRECTORIES [InstallProjectViaInstalledDirectories()]
4) and finally CPACK_INSTALL_CMAKE_PROJECTS [InstallProjectViaInstallCMakeProjects()]

but Source/CPack/cpack.cxx at line 470 checks only 1,3,4 options! so if my configuration file has only CPACK_INSTALL_SCRIPT variable defined, it doesn't want to run w/ the error:

.../Source/CPack/cpack.cxx:479 Please specify build tree of the project that uses CMake using CPACK_INSTALL_CMAKE_PROJECTS, specify CPACK_INSTALL_COMMANDS, or specify CPACK_INSTALLED_DIRECTORIES.

TagsNo tags attached.
Attached Files

 Relationships

  Notes
(0036316)
Alex Turbov (reporter)
2014-07-03 05:18

FYI, same for cmake 3.0.0
(0042580)
Kitware Robot (administrator)
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.

 Issue History
Date Modified Username Field Change
2014-07-03 05:17 Alex Turbov New Issue
2014-07-03 05:18 Alex Turbov Note Added: 0036316
2016-06-10 14:29 Kitware Robot Note Added: 0042580
2016-06-10 14:29 Kitware Robot Status new => resolved
2016-06-10 14:29 Kitware Robot Resolution open => moved
2016-06-10 14:29 Kitware Robot Assigned To => Kitware Robot
2016-06-10 14:31 Kitware Robot Status resolved => closed


Copyright © 2000 - 2018 MantisBT Team