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.

This commit is contained in:
Brad King 2005-03-31 18:03:47 -05:00
parent 047047924d
commit dd4031114a
1 changed files with 1 additions and 0 deletions

View File

@ -670,6 +670,7 @@ cmLocalUnixMakefileGenerator2
std::string customName = output; std::string customName = output;
cmSystemTools::ReplaceString(customName, "../", "___"); cmSystemTools::ReplaceString(customName, "../", "___");
cmSystemTools::ReplaceString(customName, "/", "_"); cmSystemTools::ReplaceString(customName, "/", "_");
cmSystemTools::ReplaceString(customName, ":", "_");
std::string ruleFileName = dir; std::string ruleFileName = dir;
ruleFileName += "/"; ruleFileName += "/";
ruleFileName += customName; ruleFileName += customName;