MantisBT - CMake
View Issue Details
0008780CMakeCMakepublic2009-03-23 13:522016-06-10 14:30
James Bigler 
Bill Hoffman 
normalfeaturealways
closedmoved 
CMake-2-6 
 
0008780: No RENAME capability for executable targets
When installing a target (install(TARGETS)), it would be useful to be able to be able to rename the target like we can with files.

Setting a target property wouldn't work, because then you wouldn't be able to install the same file more than once with different names.
No tags attached.
Issue History
2009-03-23 13:52James BiglerNew Issue
2009-04-06 22:12Philip LowmanNote Added: 0015942
2009-04-06 22:14Philip LowmanNote Added: 0015943
2009-09-14 14:19Bill HoffmanStatusnew => assigned
2009-09-14 14:19Bill HoffmanAssigned To => Bill Hoffman
2016-06-10 14:27Kitware RobotNote Added: 0041526
2016-06-10 14:27Kitware RobotStatusassigned => resolved
2016-06-10 14:27Kitware RobotResolutionopen => moved
2016-06-10 14:30Kitware RobotStatusresolved => closed

Notes
(0015942)
Philip Lowman   
2009-04-06 22:12   
Have you considered using a POST_BUILD rule to copy the executable target to a different name? You could then use install(PROGRAMS...) on the copied executable or install(TARGET...) on the original.
(0015943)
Philip Lowman   
2009-04-06 22:14   
Sorry, forgot to post an example. You can probably adapt something like this:

http://www.vtk.org/Wiki/CMake_FAQ#How_do_I_rename_a_library_after_it_has_already_been_built.3F [^]
(0041526)
Kitware Robot   
2016-06-10 14:27   
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.