diff options
author | Brad King <brad.king@kitware.com> | 2005-03-31 23:03:47 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2005-03-31 23:03:47 (GMT) |
commit | dd4031114a65552b691e7003c7cdb4485accc360 (patch) | |
tree | f01b8369de7d124b5abf3720c898a54bda76e8dc | |
parent | 047047924db60066d3f72a0f4f396ca45b981c08 (diff) | |
download | CMake-dd4031114a65552b691e7003c7cdb4485accc360.zip CMake-dd4031114a65552b691e7003c7cdb4485accc360.tar.gz CMake-dd4031114a65552b691e7003c7cdb4485accc360.tar.bz2 |
BUG: When generating the name of the custom rule file the character : should be replaced with an underscore because it might be a non-file-name part of a path.
-rw-r--r-- | Source/cmLocalUnixMakefileGenerator2.cxx | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Source/cmLocalUnixMakefileGenerator2.cxx b/Source/cmLocalUnixMakefileGenerator2.cxx index 8beb597..1524b51 100644 --- a/Source/cmLocalUnixMakefileGenerator2.cxx +++ b/Source/cmLocalUnixMakefileGenerator2.cxx @@ -670,6 +670,7 @@ cmLocalUnixMakefileGenerator2 std::string customName = output; cmSystemTools::ReplaceString(customName, "../", "___"); cmSystemTools::ReplaceString(customName, "/", "_"); + cmSystemTools::ReplaceString(customName, ":", "_"); std::string ruleFileName = dir; ruleFileName += "/"; ruleFileName += customName; |