Skip to content
GitLab
Menu
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
1ab9f474
Commit
1ab9f474
authored
Mar 11, 2005
by
Brad King
Browse files
BUG: Do not report an error removing the binary directory if it doesn't exist.
parent
a1de5748
Changes
1
Show whitespace changes
Inline
Side-by-side
Source/CTest/cmCTestScriptHandler.cxx
View file @
1ab9f474
...
@@ -788,10 +788,10 @@ bool cmCTestScriptHandler::EmptyBinaryDirectory(const char *sname)
...
@@ -788,10 +788,10 @@ bool cmCTestScriptHandler::EmptyBinaryDirectory(const char *sname)
// try to avoid deleting directories that we shouldn't
// try to avoid deleting directories that we shouldn't
std
::
string
check
=
sname
;
std
::
string
check
=
sname
;
check
+=
"/CMakeCache.txt"
;
check
+=
"/CMakeCache.txt"
;
if
(
cmSystemTools
::
FileExists
(
check
.
c_str
()))
if
(
cmSystemTools
::
FileExists
(
check
.
c_str
())
&&
!
cmSystemTools
::
RemoveADirectory
(
sname
))
{
{
cmSystemTools
::
RemoveADirectory
(
sname
);
return
true
;
}
return
false
;
return
false
;
}
return
true
;
}
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a 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