summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2010-06-03 15:18:39 (GMT)
committerBrad King <brad.king@kitware.com>2010-06-03 15:18:39 (GMT)
commitcae85c9f65c87bfa05376077f70cb05c26b2bc66 (patch)
treea9f08493eed783b0f608d4ab07f24c11258cf3bf
parent85cbdaade22c7ba6dac7a806c0b88ebc32caa4c1 (diff)
downloadCMake-cae85c9f65c87bfa05376077f70cb05c26b2bc66.zip
CMake-cae85c9f65c87bfa05376077f70cb05c26b2bc66.tar.gz
CMake-cae85c9f65c87bfa05376077f70cb05c26b2bc66.tar.bz2
Borland: No S_IWGRP is available
-rw-r--r--Source/cmFileCommand.cxx2
-rw-r--r--Source/cmWriteFileCommand.cxx2
2 files changed, 4 insertions, 0 deletions
diff --git a/Source/cmFileCommand.cxx b/Source/cmFileCommand.cxx
index 9bd84d8..df9863f 100644
--- a/Source/cmFileCommand.cxx
+++ b/Source/cmFileCommand.cxx
@@ -191,6 +191,8 @@ bool cmFileCommand::HandleWriteCommand(std::vector<std::string> const& args,
cmSystemTools::SetPermissions(fileName.c_str(),
#if defined( _MSC_VER ) || defined( __MINGW32__ )
mode | S_IWRITE
+#elif defined( __BORLANDC__ )
+ mode | S_IWUSR
#else
mode | S_IWUSR | S_IWGRP
#endif
diff --git a/Source/cmWriteFileCommand.cxx b/Source/cmWriteFileCommand.cxx
index ec558b6..b2acb2b 100644
--- a/Source/cmWriteFileCommand.cxx
+++ b/Source/cmWriteFileCommand.cxx
@@ -62,6 +62,8 @@ bool cmWriteFileCommand
cmSystemTools::SetPermissions(fileName.c_str(),
#if defined( _MSC_VER ) || defined( __MINGW32__ )
mode | S_IWRITE
+#elif defined( __BORLANDC__ )
+ mode | S_IWUSR
#else
mode | S_IWUSR | S_IWGRP
#endif