Hi all,

I have a rather complex setup with multiple subdirectories under one
top-level CMakeLists.txt file. I need to install some targets defined
in subdirectories, but the destination of the install is not known at
the time the subdirectory is processed (it potentially depends on
stuff which happens in the top-level CMakeLists.txt after the
subdirectories are added).

Is there a way to do this? When I simply tried putting the
install(TARGETS ...) commands into the top-level CMakeLists.txt, it
complained along the lines of "no such target in current directory."

Thanks in advance for any replies.

Petr
--

Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake

Reply via email to