MantisBT - CMake
View Issue Details
0015210CMakeCMakepublic2014-10-17 13:362014-10-30 11:37
Clinton Stimpson 
Clinton Stimpson 
normalminoralways
closedfixed 
 
 
0015210: CMakeFindBinUtils.cmake not re-run when cache is deleted
If I run cmake to create a build tree, then delete the CMakeCache.txt file and re-run cmake, the cache variables from CMakeFindBinUtils.cmake are not restored.

Modules/Platform/Darwin.cmake and Modules/Platform/Windows-MSVC.cmake both contain hacks to restore some cache variables.

In my case, a missing CMAKE_STRIP prompted this bug report because it was possible to create packages containing debug symbols.

With <root>/CMake and <root>/build:

cmake ../CMake
mv CMakeCache.txt CMakeCache.txt.bak
rm CMakeCache.txt
cmake ../CMake

diff -u CMakeCache.txt.bak CMakeCache.txt
to see all of the missing variables.
No tags attached.
Issue History
2014-10-17 13:36Clinton StimpsonNew Issue
2014-10-17 14:00Brad KingNote Added: 0037043
2014-10-30 11:37Clinton StimpsonStatusnew => closed
2014-10-30 11:37Clinton StimpsonAssigned To => Clinton Stimpson
2014-10-30 11:37Clinton StimpsonResolutionopen => fixed

Notes
(0037043)
Brad King   
2014-10-17 14:00   
Deleting CMakeCache.txt has not been enough in a *LONG* time. You need to delete CMakeFiles/ too.