summaryrefslogtreecommitdiffstats
path: root/Source/CursesDialog/ccmake.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'Source/CursesDialog/ccmake.cxx')
-rw-r--r--Source/CursesDialog/ccmake.cxx3
1 files changed, 1 insertions, 2 deletions
diff --git a/Source/CursesDialog/ccmake.cxx b/Source/CursesDialog/ccmake.cxx
index 8c9a3c3..444eb2c 100644
--- a/Source/CursesDialog/ccmake.cxx
+++ b/Source/CursesDialog/ccmake.cxx
@@ -96,8 +96,6 @@ int main(int argc, char** argv)
cmSystemTools::DisableRunCommandOutput();
- cmCacheManager::GetInstance()->LoadCache(cacheDir.c_str());
-
if (debug)
{
cmCursesForm::DebugStart();
@@ -128,6 +126,7 @@ int main(int argc, char** argv)
cmCursesMainForm* myform;
myform = new cmCursesMainForm(args, x);
+ myform->LoadCache(cacheDir.c_str());
cmSystemTools::SetErrorCallback(CMakeErrorHandler);