[CMake] Install targets defined in other directories

Alexander Neundorf a.neundorf-work at gmx.net
Wed Mar 25 12:53:56 EDT 2009


On Wednesday 25 March 2009, Daniele Galdi wrote:
> Hi all,
>
> in my project during the compilation procedure a library defined in
> another CMakeList.txt (previously processed by cmake),
> is linked without problems, but when i try to define an
> install(targets) macro, the build process fails with message.
>
> install TARGETS given target "core" which does not exist in this
> directory.
>
> Is not possible with cmake install targets defined in other
> directories? 

No.

> If NO why i can't see the reason.

Targets should have project-global unique names, all the rest is parameters. 
Not sure if there is another reason beside "because nobody implemented it 
yet".

Alex


More information about the CMake mailing list