From dd4031114a65552b691e7003c7cdb4485accc360 Mon Sep 17 00:00:00 2001 From: Brad King Date: Thu, 31 Mar 2005 18:03:47 -0500 Subject: [PATCH] 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. --- Source/cmLocalUnixMakefileGenerator2.cxx | 1 + 1 file changed, 1 insertion(+) diff --git a/Source/cmLocalUnixMakefileGenerator2.cxx b/Source/cmLocalUnixMakefileGenerator2.cxx index 8beb59729..1524b5185 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;