Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
CMake
CMake
Commits
11b68dea
Commit
11b68dea
authored
Apr 25, 2001
by
Bill Hoffman
Browse files
ENH: add error checking for empty build dir
parent
5c83326f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Source/MFCDialog/CMakeSetupDialog.cpp
View file @
11b68dea
...
...
@@ -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
();
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment