>
> 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
>>
>
> Apologies for the mis-click,

Maybe right about the cyclic dependency,

I used instead a cmakefile-local custom target to run all the time... with
ALL.

Yes i have a DEPENDS.

What I want is this command to run post build of the entire project (my top
level project), this command produces a sql file,
and I want it only to run if any of its dependencies changed.
-- 

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