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 <[email protected]> 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
-- 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
