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
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
Hide whitespace changes
Inline
Side-by-side
Source/CTest/cmCTestScriptHandler.cxx
View file @
1ab9f474
...
...
@@ -788,10 +788,10 @@ bool cmCTestScriptHandler::EmptyBinaryDirectory(const char *sname)
// try to avoid deleting directories that we shouldn't
std
::
string
check
=
sname
;
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
fals
e
;
return
tru
e
;
}
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