[cmake-developers] [CMake 0014555]: Add ability to INSTALL(CODE|SCRIPT ...) that is always executed at install time regardless of component being installed.

Mantis Bug Tracker mantis at public.kitware.com
Mon Nov 11 06:50:48 EST 2013


The following issue has been SUBMITTED. 
====================================================================== 
http://public.kitware.com/Bug/view.php?id=14555 
====================================================================== 
Reported By:                Tim Patterson
Assigned To:                
====================================================================== 
Project:                    CMake
Issue ID:                   14555
Category:                   CMake
Reproducibility:            N/A
Severity:                   feature
Priority:                   normal
Status:                     new
====================================================================== 
Date Submitted:             2013-11-11 06:50 EST
Last Modified:              2013-11-11 06:50 EST
====================================================================== 
Summary:                    Add ability to INSTALL(CODE|SCRIPT ...) that is
always executed at install time regardless of component being installed.
Description: 
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?

Additional Information: 
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.
====================================================================== 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2013-11-11 06:50 Tim Patterson  New Issue                                    
======================================================================




More information about the cmake-developers mailing list