diff options
author | Andy Cedilnik <andy.cedilnik@kitware.com> | 2004-01-26 21:24:35 (GMT) |
---|---|---|
committer | Andy Cedilnik <andy.cedilnik@kitware.com> | 2004-01-26 21:24:35 (GMT) |
commit | 5c8c6fa3da9f0e80fad858a4e7c10846a46cce38 (patch) | |
tree | 91a5c6a052b03c41ba0c8310a2883f9c8b2dbdbc /Source/cmFileCommand.cxx | |
parent | dae3e140ae6936ca376551cbdf77a896049c8dab (diff) | |
download | CMake-5c8c6fa3da9f0e80fad858a4e7c10846a46cce38.zip CMake-5c8c6fa3da9f0e80fad858a4e7c10846a46cce38.tar.gz CMake-5c8c6fa3da9f0e80fad858a4e7c10846a46cce38.tar.bz2 |
ENH: Several windows bugs and fixes
Diffstat (limited to 'Source/cmFileCommand.cxx')
-rw-r--r-- | Source/cmFileCommand.cxx | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/Source/cmFileCommand.cxx b/Source/cmFileCommand.cxx index 0aae2e0..6d1fd19 100644 --- a/Source/cmFileCommand.cxx +++ b/Source/cmFileCommand.cxx @@ -240,7 +240,7 @@ bool cmFileCommand::HandleInstallCommand(std::vector<std::string> const& args) std::vector<std::string> files; int itype = cmTarget::INSTALL_FILES; - std::vector<std::string>::size_type i; + std::vector<std::string>::size_type i = 0; i++; // Get rid of subcommand std::string expr; @@ -344,9 +344,14 @@ bool cmFileCommand::HandleInstallCommand(std::vector<std::string> const& args) case cmTarget::EXECUTABLE: if ( !cmSystemTools::SetPermissions(destfile.c_str(), +#ifdef _MSC_VER + S_IREAD | S_IWRITE | S_IEXEC +#else S_IRUSR | S_IWUSR | S_IXUSR | S_IRGRP | S_IXGRP | - S_IROTH | S_IXOTH ) ) + S_IROTH | S_IXOTH +#endif + ) ) { perror("problem doing chmod."); } |