Re: [CMake] Build-system dependency (as opposed to target)

2016-06-09 Thread James Turner
> On 9 Jun 2016, at 09:51, Petr Kmoch wrote: > > I believe you're looking for the directory property CMAKE_CONFIGURE_DEPENDS ( > https://cmake.org/cmake/help/latest/prop_dir/CMAKE_CONFIGURE_DEPENDS.html ). > Adding a file path to that property causes any changes to that

Re: [CMake] Build-system dependency (as opposed to target)

2016-06-09 Thread Petr Kmoch
Hi James, I believe you're looking for the directory property CMAKE_CONFIGURE_DEPENDS ( https://cmake.org/cmake/help/latest/prop_dir/CMAKE_CONFIGURE_DEPENDS.html ). Adding a file path to that property causes any changes to that file to trigger a regeneration: set_property(DIRECTORY APPEND

[CMake] Build-system dependency (as opposed to target)

2016-06-09 Thread James Turner
Hi, Is there a way to make the entire build-system depend on a file? I have some data I’m reading into my CMakeList.txt via file(READ), and I want changes to that file to effectively act as if the CMakeList.txt itself was modified. The read values are used to populate some variables via string