MantisBT - CMake | |||||
View Issue Details | |||||
ID | Project | Category | View Status | Date Submitted | Last Update |
0006103 | CMake | CMake | public | 2007-11-30 16:38 | 2010-12-14 18:49 |
Reporter | Baron Roberts | ||||
Assigned To | David Cole | ||||
Priority | normal | Severity | feature | Reproducibility | N/A |
Status | closed | Resolution | no change required | ||
Platform | OS | OS Version | |||
Product Version | |||||
Target Version | Fixed in Version | ||||
Summary | 0006103: ADD_CUSTOM_TARGET and/or INSTALL needs a POST_INSTALL attribute | ||||
Description | There are commands that need to be run after an INSTALL (e.g. stripping binaries). Currently this can only be accomplished using the INSTALL(CODE... or INSTALL(SCRIPT... commands. While this can be made to work, it is very clumsy and arcane because the DESTDIR environment variable needs to be taken into account. To perform a simple stripping of an installed executable one needs to write something like: install(CODE "EXECUTE_PROCESS(COMMAND ${ARM-STRIP} --strip-all \$ENV{DESTDIR}${INSTALL_PREFIX}/bin/${target})") At first the POST_BUILD attribute on ADD_CUSTOM_TARGET looks promising but it is not run after an install relink. So the best solution would be to provide either a POST_INSTALL attribute on ADD_CUSTOM_TARGET and/or on INSTALL. In addition, it would be very helpful to have a variable that reflects the true installation directory (i.e. with DESTDIR factored in). | ||||
Steps To Reproduce | |||||
Additional Information | |||||
Tags | No tags attached. | ||||
Relationships | |||||
Attached Files | |||||
Issue History | |||||
Date Modified | Username | Field | Change | ||
2007-11-30 16:38 | Baron Roberts | New Issue | |||
2007-12-14 20:34 | Bill Hoffman | Status | new => assigned | ||
2007-12-14 20:34 | Bill Hoffman | Assigned To | => David Cole | ||
2009-12-28 15:44 | David Cole | Note Added: 0019002 | |||
2009-12-28 15:44 | David Cole | Status | assigned => resolved | ||
2009-12-28 15:44 | David Cole | Resolution | open => no change required | ||
2010-12-14 18:49 | David Cole | Note Added: 0024050 | |||
2010-12-14 18:49 | David Cole | Status | resolved => closed |
Notes | |||||
|
|||||
|
|
||||
|
|||||
|
|