minor bootstap fixes

This commit is contained in:
Ken Martin 2002-05-23 10:33:37 -04:00
parent 843da92405
commit 92c5ff5b40
1 changed files with 5 additions and 3 deletions

View File

@ -353,7 +353,9 @@ void cmake::HandleBootstrap(cmMakefile& mf, const std::string& args0)
if (cmSystemTools::GetFilenameNameWithoutExtension(args0) ==
"bootstrap")
{
int done = 0;
// if the user specified a generator on the command line we do not
// need to prompt the user
int done = (mf.GetMakefileGenerator() != 0);
while (!done)
{
@ -384,7 +386,6 @@ void cmake::HandleBootstrap(cmMakefile& mf, const std::string& args0)
else
{
mf.SetMakefileGenerator(gen);
mf.AddDefinition("CMAKE_BOOTSTRAP","1");
std::cout <<
"\n\nThank You. CMake will now generate the appropriate files for\nbeing built with " << names[choice-1].c_str() << "\n\n";
}
@ -395,6 +396,7 @@ void cmake::HandleBootstrap(cmMakefile& mf, const std::string& args0)
count -1 << "\n";
}
}
mf.AddDefinition("CMAKE_BOOTSTRAP","1");
}
}