diff --git a/Source/cmFileCommand.cxx b/Source/cmFileCommand.cxx index 9bd84d84ce..df9863fd9e 100644 --- a/Source/cmFileCommand.cxx +++ b/Source/cmFileCommand.cxx @@ -191,6 +191,8 @@ bool cmFileCommand::HandleWriteCommand(std::vector 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 ec558b6dd9..b2acb2bc15 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