On 20 July 2015 at 18:52, Micha Hergarden <[email protected]> wrote:

>  On 07/20/2015 05:16 PM, MM wrote:
>
> 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
> )
>
>
>  In what way do you want to refer to it? You may want to use the DEPENDS
> parameter here. Do I understand correctly that you want to add a custom
> command that depends on the whole project the custom command is part of?
> Does that not imply a cyclic dependency?
>
> Regards,
> Micha
>
-- 

Powered by www.kitware.com

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

Kitware offers various services to support the CMake community. For more 
information on each offering, please visit:

CMake Support: http://cmake.org/cmake/help/support.html
CMake Consulting: http://cmake.org/cmake/help/consulting.html
CMake Training Courses: http://cmake.org/cmake/help/training.html

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

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/cmake

Reply via email to