Browse Source

ERR: Fix build on Mingw. Looks like Mingw is more like visual studio... Thanks Fred Wheeler

Andy Cedilnik 22 years ago
parent
commit
127872e820
1 changed files with 1 additions and 1 deletions
  1. 1 1
      Source/cmFileCommand.cxx

+ 1 - 1
Source/cmFileCommand.cxx

@@ -344,7 +344,7 @@ bool cmFileCommand::HandleInstallCommand(std::vector<std::string> const& args)
     case cmTarget::EXECUTABLE:
 
       if ( !cmSystemTools::SetPermissions(destfile.c_str(), 
-#if defined( _MSC_VER )
+#if defined( _MSC_VER ) || defined( __MINGW32__ )
           S_IREAD | S_IWRITE | S_IEXEC
 #elif defined( __BORLANDC__ )
           S_IRUSR | S_IWUSR | S_IXUSR