[CMake] automatic cmake run when specific files change

Hendrik Sattler post at hendrik-sattler.de
Tue Oct 13 18:16:37 EDT 2009


Hi,

when changing a CMakeLists.txt file and calling make, then cmake automatically 
runs. I want to achieve the same thing but for specific files.

The situation: DocBook/XML files are parsed at cmake times to get the names of 
the output files. If the docbook files change, the names of the output files may 
also change, so cmake needs to be run again to update the rules.

How can this be done?

Thanks

HS


More information about the CMake mailing list