Commit 11b68dea authored by Bill Hoffman's avatar Bill Hoffman
Browse files

ENH: add error checking for empty build dir

parent 5c83326f
......@@ -315,6 +315,22 @@ void CMakeSetupDialog::LoadFromRegistry()
void CMakeSetupDialog::OnBuildProjects()
{
if(!cmSystemTools::FileExists(m_WhereBuild))
{
std::string message =
"Build directory does not exist, should I create it?\n\n"
"Directory: ";
message += (const char*)m_WhereBuild;
if(MessageBox(message.c_str(), "Create Directory", MB_OKCANCEL) == IDOK)
{
cmSystemTools::MakeDirectory(m_WhereBuild);
}
else
{
MessageBox("Build Project aborted, nothing done.");
return;
}
}
::SetCursor(LoadCursor(NULL, IDC_WAIT));
// get all the info from the screen
this->UpdateData();
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment