MantisBT - CMake
View Issue Details
0014555CMakeCMakepublic2013-11-11 06:502016-06-10 14:31
Tim Patterson 
Kitware Robot 
normalfeatureN/A
closedmoved 
Apple MacOS X10.4.10
CMake 2.8.12 
 
0014555: Add ability to INSTALL(CODE|SCRIPT ...) that is always executed at install time regardless of component being installed.
At the moment, the INSTALL(CODE|SCRIPT ...) command always generates install-time code that wraps the script or code passed to the command in an "if" statement that only executes the code if the selected (or CMAKE_INSTALL_DEFAULT_COMPONENT_NAME if none selected) component is currently being installed. I'd like to be able to add arbitrary code to the install-time script without this check.
 
Perhaps a new flag "ALWAYS_EXECUTE" (ok - that's lame) or something like that could be added to the INSTALL(CODE|SCRIPT ...) command?
I'm (very slowly) developing a set of scripts that will allow me to specify dependencies (a'la augmented-FIND_PACKAGE), but allow them to be managed in an independent and consistent manner (a'la maven/ivy). It's all very brittle and basic ATM... I'm currently working on tying the information gathered from this step together with information gathered from a slightly augmented "GetPrerequisites" executed at install time to easily (?) build install packages. Tying them together requires that some information from the augmented FIND_PACKAGE step be placed into the install-time script and executed regardless of component being installed.
No tags attached.
Issue History
2013-11-11 06:50Tim PattersonNew Issue
2016-06-10 14:29Kitware RobotNote Added: 0042416
2016-06-10 14:29Kitware RobotStatusnew => resolved
2016-06-10 14:29Kitware RobotResolutionopen => moved
2016-06-10 14:29Kitware RobotAssigned To => Kitware Robot
2016-06-10 14:31Kitware RobotStatusresolved => closed

Notes
(0042416)
Kitware Robot   
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.