View Issue Details Jump to Notes ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0008780CMakeCMakepublic2009-03-23 13:522016-06-10 14:30
ReporterJames Bigler 
Assigned ToBill Hoffman 
PrioritynormalSeverityfeatureReproducibilityalways
StatusclosedResolutionmoved 
PlatformOSOS Version
Product VersionCMake-2-6 
Target VersionFixed in Version 
Summary0008780: No RENAME capability for executable targets
DescriptionWhen 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.
TagsNo tags attached.
Attached Files

 Relationships

  Notes
(0015942)
Philip Lowman (developer)
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 (developer)
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 (administrator)
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.

 Issue History
Date Modified Username Field Change
2009-03-23 13:52 James Bigler New Issue
2009-04-06 22:12 Philip Lowman Note Added: 0015942
2009-04-06 22:14 Philip Lowman Note Added: 0015943
2009-09-14 14:19 Bill Hoffman Status new => assigned
2009-09-14 14:19 Bill Hoffman Assigned To => Bill Hoffman
2016-06-10 14:27 Kitware Robot Note Added: 0041526
2016-06-10 14:27 Kitware Robot Status assigned => resolved
2016-06-10 14:27 Kitware Robot Resolution open => moved
2016-06-10 14:30 Kitware Robot Status resolved => closed


Copyright © 2000 - 2018 MantisBT Team