[CMake] How to rename a target?

Enrico Scholz enrico.scholz at informatik.tu-chemnitz.de
Wed Sep 20 13:26:08 EDT 2006


Hello,

does there exist a way to rename a target 'exe-foo' so that it is
installed as 'bin/foo' finally?


With cmake-2.4.3, I tried

| install(TARGETS exe-foo
|   RUNTIME DESTINATION bin
|   RENAME  foo)

but this fails with

| INSTALL TARGETS given unknown argument "RENAME".


The background is, that I have a project which ships both a library
'libfoo' and an executable 'foo'. Giving same name ('foo') causes
conflicts, using 'install(FILES ...') (which supports 'RENAME') does
not strip RPATHs.




Enrico
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 480 bytes
Desc: not available
Url : http://public.kitware.com/pipermail/cmake/attachments/20060920/8cce71ab/attachment.pgp


More information about the CMake mailing list