Skip to content

Tolerate removed/replaced CMakeCache.txt with old CMakeFiles/

Brad King requested to merge brad.king/cmake:tolerate-removed-cache into master

Users or scripts commonly remove or replace CMakeCache.txt without also removing CMakeFiles/. In this case the information saved in the cache from platform information initialization is missing, so we need to re-initialize it. In such a case, remove the platform information directory so that re-initialization will occur and restore needed information to the cache.

Closes: #14820 (closed)

Merge request reports