[CMake] Adding dependencies for configuration stage

Daniel Levin dendy.ua at gmail.com
Sat Aug 20 02:44:13 EDT 2016


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).
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/cmake/attachments/20160820/7d869810/attachment.html>


More information about the CMake mailing list