mirror of
https://github.com/Kitware/CMake.git
synced 2026-03-03 21:28:40 -06:00
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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user