summaryrefslogtreecommitdiffstats
path: root/Source/ccommand.cxx
diff options
context:
space:
mode:
authorBill Hoffman <bill.hoffman@kitware.com>2002-03-26 17:38:52 (GMT)
committerBill Hoffman <bill.hoffman@kitware.com>2002-03-26 17:38:52 (GMT)
commit7fc14a9cb49712f3199f3bb9bd020d6ae5860501 (patch)
tree4c317ae34aef2e14710d32950b2487a9879308a8 /Source/ccommand.cxx
parent60d604ae4e1481c139f871c30824490b6036560c (diff)
downloadCMake-7fc14a9cb49712f3199f3bb9bd020d6ae5860501.zip
CMake-7fc14a9cb49712f3199f3bb9bd020d6ae5860501.tar.gz
CMake-7fc14a9cb49712f3199f3bb9bd020d6ae5860501.tar.bz2
ENH: use ccommand for del on windows
Diffstat (limited to 'Source/ccommand.cxx')
-rw-r--r--Source/ccommand.cxx9
1 files changed, 8 insertions, 1 deletions
diff --git a/Source/ccommand.cxx b/Source/ccommand.cxx
index 9036ddd..9f32330 100644
--- a/Source/ccommand.cxx
+++ b/Source/ccommand.cxx
@@ -51,7 +51,14 @@ int main(int ac, char** av)
{
for ( std::string::size_type cc = 2; cc < args.size(); cc ++ )
{
- cmSystemTools::RemoveFile(args[cc].c_str());
+ if(args[cc] != "-f")
+ {
+ if(args[cc] == "\\-f")
+ {
+ args[cc] = "-f";
+ }
+ cmSystemTools::RemoveFile(args[cc].c_str());
+ }
}
return 0;
}