Browse Source

ENH: fix problem if there are .. in the path to the source file specified in a source group

Bill Hoffman 20 years ago
parent
commit
bebb6b1767
1 changed files with 1 additions and 0 deletions
  1. 1 0
      Source/cmSourceGroupCommand.cxx

+ 1 - 0
Source/cmSourceGroupCommand.cxx

@@ -124,6 +124,7 @@ bool cmSourceGroupCommand::InitialPass(std::vector<std::string> const& args)
         src += "/";
         src += "/";
         src += args[i];
         src += args[i];
         }
         }
+      src = cmSystemTools::CollapseFullPath(src.c_str());
       sg->AddGroupFile(src.c_str());
       sg->AddGroupFile(src.c_str());
       }
       }
     else
     else