Dear all,
I've just discovered that option() behaves differently than I anticipated. After reading the docs and searching with google I'm still confused how to achieve my desired behaviour. What I've just learned is that unspecified options take their cached value and do *not* go back to their default value, if a cache exists. I assumed that options take their default when not explicitly specified. Now my problem: I could not find a way to get the behaviour I'd like. Is it possible to enforce the default for an option when its not specified by the user, even if a cache exists? I tried to unset() the option from the cache but that does not do what I'd like. All the best, Mario Emmenlauer -- 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: https://cmake.org/mailman/listinfo/cmake