Am 10.12.2015 um 21:26 schrieb Brad King:
Alternatively the option() or set(CACHE) commands could also set a local variable to the same value as the cache entry.

I would vote for that.
Maybe optional arguments to set(CACHE) could be introduced to switch the behavior.
Like set(... CACHED ... [UNSET_LOCAL] [OVERWRITE_LOCAL] [KEEP_LOCAL]).

What about locals in parent scopes, overwrite all of them?


Bug https://public.kitware.com/Bug/view.php?id=15448 is kind of related, and also shows some weird effects of the current implementation.


Marc



--

Powered by www.kitware.com

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

Kitware offers various services to support the CMake community. For more 
information on each offering, please visit:

CMake Support: http://cmake.org/cmake/help/support.html
CMake Consulting: http://cmake.org/cmake/help/consulting.html
CMake Training Courses: http://cmake.org/cmake/help/training.html

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

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/cmake-developers

Reply via email to