summaryrefslogtreecommitdiffstats
path: root/Source/cmSystemTools.cxx
diff options
context:
space:
mode:
authorSebastien Barre <sebastien.barre@kitware.com>2002-01-19 00:21:02 (GMT)
committerSebastien Barre <sebastien.barre@kitware.com>2002-01-19 00:21:02 (GMT)
commit747457abb647910742c5e13529894950d3c9ada4 (patch)
tree2ab8ce380a15ab272a80d885eaba18188733459a /Source/cmSystemTools.cxx
parent5ab916f64d9da0dc3d2879036d61a26be49cd964 (diff)
downloadCMake-747457abb647910742c5e13529894950d3c9ada4.zip
CMake-747457abb647910742c5e13529894950d3c9ada4.tar.gz
CMake-747457abb647910742c5e13529894950d3c9ada4.tar.bz2
ENH: RemoveFile returns if the file was removed or not
Diffstat (limited to 'Source/cmSystemTools.cxx')
-rw-r--r--Source/cmSystemTools.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/Source/cmSystemTools.cxx b/Source/cmSystemTools.cxx
index 962cfe5..5469622 100644
--- a/Source/cmSystemTools.cxx
+++ b/Source/cmSystemTools.cxx
@@ -894,9 +894,9 @@ long int cmSystemTools::ModifiedTime(const char* filename)
-void cmSystemTools::RemoveFile(const char* source)
+bool cmSystemTools::RemoveFile(const char* source)
{
- unlink(source);
+ return unlink(source) != 0 ? false : true;
}
bool cmSystemTools::IsOn(const char* val)