[CMake] Visual Studio add-in: adding non-cmake files as dependencies to trigger re-generation

Roman Bolshakov roolebo at gmail.com
Wed Feb 18 19:26:20 EST 2015


You might try to use CMAKE_CONFIGURE_DEPENDS (http://www.cmake.org/cmake/help/v3.0/prop_dir/CMAKE_CONFIGURE_DEPENDS.html) property:


set_property(DIRECTORY APPEND PROPERTY CMAKE_CONFIGURE_DEPENDS dependency.txt)





That would trigger CMake regeneration upon a change of dependency.txt




-Roman
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/cmake/attachments/20150218/f910a70e/attachment.html>


More information about the CMake mailing list