[CMake] refering to top-level project as a target in a subdir's cmakelists.txt

MM finjulhich at gmail.com
Mon Jul 20 11:16:29 EDT 2015


I want to refer to

== toplevl cmakelists file ===
PROJECT(prj)
ADD_SUBDIRECTORY(dir1)

==dir1 cmakelists.txt===
ADD_CUSTOM_COMMAND( TARGET prj  # this doesn't work
)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/cmake/attachments/20150720/003d4e99/attachment.html>


More information about the CMake mailing list