diff options
author | Brad King <brad.king@kitware.com> | 2006-08-21 21:47:51 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2006-08-21 21:47:51 (GMT) |
commit | c99dcc30be3e4d5c31ebcf8e35f4073f0af0e83a (patch) | |
tree | 4c6a9c879850c8d3f7438a3ef6a110c940c49e9a /Source/cmInstallCommand.cxx | |
parent | 08398a9f0c9bfe27ecb6d75432e2ecfd85f6159f (diff) | |
download | CMake-c99dcc30be3e4d5c31ebcf8e35f4073f0af0e83a.zip CMake-c99dcc30be3e4d5c31ebcf8e35f4073f0af0e83a.tar.gz CMake-c99dcc30be3e4d5c31ebcf8e35f4073f0af0e83a.tar.bz2 |
BUG: Directory installation pattern matching should be case insensitive on some platforms.
Diffstat (limited to 'Source/cmInstallCommand.cxx')
-rw-r--r-- | Source/cmInstallCommand.cxx | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/Source/cmInstallCommand.cxx b/Source/cmInstallCommand.cxx index 0e05ab7..a5c0408 100644 --- a/Source/cmInstallCommand.cxx +++ b/Source/cmInstallCommand.cxx @@ -938,7 +938,12 @@ cmInstallCommand::HandleDirectoryMode(std::vector<std::string> const& args) else if(doing_regex) { literal_args += " REGEX \""; + // Match rules are case-insensitive on some platforms. +#if defined(_WIN32) || defined(__APPLE__) || defined(__CYGWIN__) + std::string regex = cmSystemTools::LowerCase(args[i]); +#else std::string regex = args[i]; +#endif cmSystemTools::ReplaceString(regex, "\\", "\\\\"); literal_args += regex; literal_args += "\""; |