summaryrefslogtreecommitdiffstats
path: root/Source
diff options
context:
space:
mode:
authorAndy Cedilnik <andy.cedilnik@kitware.com>2004-01-27 14:53:33 (GMT)
committerAndy Cedilnik <andy.cedilnik@kitware.com>2004-01-27 14:53:33 (GMT)
commit127872e820ea7aed784c780d29f824817193c14e (patch)
tree7595daaf51bbd2eb2f69df3b49b5d60324f72aac /Source
parentbcd194fa0691ca0a8e28916f47234aa88c5c7c74 (diff)
downloadCMake-127872e820ea7aed784c780d29f824817193c14e.zip
CMake-127872e820ea7aed784c780d29f824817193c14e.tar.gz
CMake-127872e820ea7aed784c780d29f824817193c14e.tar.bz2
ERR: Fix build on Mingw. Looks like Mingw is more like visual studio... Thanks Fred Wheeler
Diffstat (limited to 'Source')
-rw-r--r--Source/cmFileCommand.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/cmFileCommand.cxx b/Source/cmFileCommand.cxx
index a258616..b6ddfcf 100644
--- a/Source/cmFileCommand.cxx
+++ b/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