Hi

 

I'm wondering if it is possible to control whether or not a file that is
opened from a CMakeLists.txt is added to the generate.stamp.depend file and
thus checked for up-to-dateness before each build.

We currently scan several files, most of which we don't actually use in the
build system, but we need to read them in order to know this. However, this
always adds them to the dependency list (tested with both include() and
file() reading), and thus changing them triggers a regeneration of the
project before each build - which can be annoying since these files may
change frequently.

While there are other options (avoiding scanning files or doing it in an
external application) I'd prefer reading them from within CMake without
listing them as regeneration dependency.

Is there a way to achieve this?

 

Regards

  Dominik

_______________________________________________
Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake

Reply via email to