[CMake] control dependencies in cmake stage

Tomasz Majchrowski usenet at majchrowski.de
Tue Mar 10 14:09:16 EDT 2015


Hi Peter,

Good point. Then it will be possible to manage workflow with pure cmake.
Without of using of external scripts.

Thanks, Tomasz.

2015-03-10 8:40 GMT+01:00 Petr Kmoch <petr.kmoch at gmail.com>:

> Hi Tomasz,
>
> the if() command also supports this operator:
>
>   if(file1 IS_NEWER_THAN file2)
>
> Perhaps you could use this to make it work for you.
>
> Petr
>
> Per
>
> On Tue, Mar 10, 2015 at 7:05 AM, Mark Abraham <mark.j.abraham at gmail.com>
> wrote:
>
>> Hi,
>>
>> What are you generating that must be done at cmake time?
>>
>> Mark
>> On 09/03/2015 5:36 pm, "Tomasz Majchrowski" <usenet at majchrowski.de>
>> wrote:
>>
>>> Hi,
>>>
>>> I'm wondering if there is an easy way to control the dependencies in the
>>> cmake stage. Basically I would like skip execution of some script run over
>>> execute_process in case some input files didn't change.
>>>
>>> The regular way will be to use add_custom_command & add_custom_target
>>> however those required targets, so the make stage.
>>>
>>> Please advice how to proceed in case there is need to control this
>>> already in cmake stage?
>>>
>>> Thanks, Tomasz.
>>>
>>>
>>> --
>>> Pozdrawiam/Best regards/Mit freundlichen Grüßen, Tomasz Majchrowski,
>>> Information Technology and Services Consultant and Contractor
>>>
>>> --
>>>
>>> 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
>>>
>>
>> --
>>
>> 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
>>
>> --
>> Pozdrawiam/Best regards/Mit freundlichen Grüßen, Tomasz Majchrowski,
>> Information Technology and Services Consultant and Contractor
>>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/cmake/attachments/20150310/74863c88/attachment-0001.html>


More information about the CMake mailing list