On 11/30/2016 12:06 PM, Tobias Hunger wrote: > start over with a clean cache since the compiler changed (which is correct). > > After cmake::Configure(...) returns values some of the values are gone > again. E.g. CMAKE_BUILD_TYPE changed back from "Debug" to "". > > Is this expected behavior?
Yes, though not really ever intended. The auto-rerun-on-compiler-change is a horrible hack that was done to make changing the compiler through ccmake possible on initial configuration. In general one should not try to change the compiler of an existing build tree, especially not from a scripted environment. If you want to ensure a fresh one-step configuration then always remove CMakeCache.txt and CMakeFiles/ before configuring. -Brad -- 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