View Issue Details Jump to Notes ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0015210CMakeCMakepublic2014-10-17 13:362014-10-30 11:37
ReporterClinton Stimpson 
Assigned ToClinton Stimpson 
PrioritynormalSeverityminorReproducibilityalways
StatusclosedResolutionfixed 
PlatformOSOS Version
Product Version 
Target VersionFixed in Version 
Summary0015210: CMakeFindBinUtils.cmake not re-run when cache is deleted
DescriptionIf 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.
Steps To Reproduce
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.
TagsNo tags attached.
Attached Files

 Relationships

  Notes
(0037043)
Brad King (manager)
2014-10-17 14:00

Deleting CMakeCache.txt has not been enough in a *LONG* time. You need to delete CMakeFiles/ too.

 Issue History
Date Modified Username Field Change
2014-10-17 13:36 Clinton Stimpson New Issue
2014-10-17 14:00 Brad King Note Added: 0037043
2014-10-30 11:37 Clinton Stimpson Status new => closed
2014-10-30 11:37 Clinton Stimpson Assigned To => Clinton Stimpson
2014-10-30 11:37 Clinton Stimpson Resolution open => fixed


Copyright © 2000 - 2018 MantisBT Team