[CMake] Adding dependencies for configuration stage

Craig Scott craig.scott at crascit.com
Sat Aug 20 07:15:58 EDT 2016


Check out CMAKE_CONFIGURE_DEPENDS, I think it should do what you want:

https://cmake.org/cmake/help/latest/prop_dir/CMAKE_CONFIGURE_DEPENDS.html

On Saturday, 20 August 2016, Daniel Levin <dendy.ua at gmail.com> wrote:

> CMake can automatically invoke configuration at build time when any
> dependency has been modified. For instance, after you edited
> CMakeLists.txt. Of when you used add_subdirectory() and edited nested
> CMakeLists.txt. Or if you have include("myscript.cmake") and modified
> myscript.cmake.
>
> I am curious which command in CMake can be used to add arbitrary
> dependency. For instance, I have python script which is executed at
> configuration stage with execute_process(). Obviously I want to trigger
> reconfiguration when this script was edited, since it is an essential part
> of the CMake script (just written in different language).
>


-- 
Craig Scott
Melbourne, Australia
http://crascit.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/cmake/attachments/20160820/3e1d3790/attachment.html>


More information about the CMake mailing list