summaryrefslogtreecommitdiffstats
path: root/Source/cmakewizard.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'Source/cmakewizard.cxx')
-rw-r--r--Source/cmakewizard.cxx10
1 files changed, 7 insertions, 3 deletions
diff --git a/Source/cmakewizard.cxx b/Source/cmakewizard.cxx
index f31d54b..f1c4fab 100644
--- a/Source/cmakewizard.cxx
+++ b/Source/cmakewizard.cxx
@@ -89,7 +89,7 @@ void cmakewizard::ShowMessage(const char* m)
-void cmakewizard::RunWizard(std::vector<std::string> const& args)
+int cmakewizard::RunWizard(std::vector<std::string> const& args)
{
m_ShowAdvanced = this->AskAdvanced();
cmSystemTools::DisableRunCommandOutput();
@@ -148,6 +148,10 @@ void cmakewizard::RunWizard(std::vector<std::string> const& args)
cachem->SaveCache(make.GetHomeOutputDirectory());
}
while(asked);
- make.Generate();
- this->ShowMessage("CMake complete, run make to build project.\n");
+ if(make.Generate() == 0)
+ {
+ this->ShowMessage("CMake complete, run make to build project.\n");
+ return 0;
+ }
+ return 1;
}