Borland: No S_IWGRP is available

This commit is contained in:
Brad King 2010-06-03 11:18:39 -04:00
parent 85cbdaade2
commit cae85c9f65
2 changed files with 4 additions and 0 deletions

View File

@ -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

View File

@ -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