Hi,

is there a direct way to find out which cache variables are modified?
Cache variables might be modified directly by the user (i.e. using cmake -D oder cmake-gui). And they could also be outdated because the default value in the "set(... CACHE ...)" command was changed in the CMakeLists.txt when updating the source from repository.

I'm thinking of two use cases which would be much simpler if that feature would be available: - Get outdated/modified cache variables and reset them using "cmake -U" without having to
  delete the whole build directory.
- Get a list of user modified cache variables to keep track of the configuration e.g.
  to reproduce a build.

I tried playing around which the MODIFIED property for cache variables but that's never set
or returns a flag.

Regards,
  Stefan
--

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