Check out CMAKE_CONFIGURE_DEPENDS, I think it should do what you want:<div><br></div><div><a href="https://cmake.org/cmake/help/latest/prop_dir/CMAKE_CONFIGURE_DEPENDS.html">https://cmake.org/cmake/help/latest/prop_dir/CMAKE_CONFIGURE_DEPENDS.html</a><br><br>On Saturday, 20 August 2016, Daniel Levin <<a href="mailto:dendy.ua@gmail.com">dendy.ua@gmail.com</a>> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">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.<div><br></div><div>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).</div></div>
</blockquote></div><br><br>-- <br><div dir="ltr"><div><div dir="ltr">Craig Scott<br><div>Melbourne, Australia</div><div><a href="http://crascit.com" target="_blank">http://crascit.com</a><br></div></div></div></div><br>