On 13/01/14 16:51, Brad King wrote: > On 01/13/2014 10:23 AM, Daniele E. Domenichelli wrote: >> Can I store CMAKE_INSTALL_PREFIX in an internal cached variable, check >> if it was changed since last run (i.e. CMAKE_INSTALL_PREFIX_OLD != >> CMAKE_INSTALL_PREFIX), check if the value is the default one, and >> eventually force-set it to the new default? > > Yes, that should work. Call it something internal-sounding > like __LAST_CMAKE_INSTALL_PREFIX.
Updated the topic to behave in this way. Can you please review it again? By the way, this is not the first time that I need to know if the value of a cached variable changed since the previous run, maybe it could be useful to have a standard way to do it... Cheers, Daniele -- 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://public.kitware.com/cgi-bin/mailman/listinfo/cmake-developers