瀏覽代碼

The path found is now collapsed (cleaner).

Sebastien Barre 24 年之前
父節點
當前提交
2533d55099
共有 1 個文件被更改,包括 1 次插入0 次删除
  1. 1 0
      Source/cmFindPathCommand.cxx

+ 1 - 0
Source/cmFindPathCommand.cxx

@@ -87,6 +87,7 @@ bool cmFindPathCommand::Invoke(std::vector<std::string>& args)
     tryPath += args[1];
     tryPath += args[1];
     if(cmSystemTools::FileExists(tryPath.c_str()))
     if(cmSystemTools::FileExists(tryPath.c_str()))
       {
       {
+      path[k] = cmSystemTools::CollapseFullPath(path[k].c_str());
       m_Makefile->AddDefinition(args[0].c_str(), path[k].c_str());  
       m_Makefile->AddDefinition(args[0].c_str(), path[k].c_str());  
       cmCacheManager::GetInstance()->AddCacheEntry(args[0].c_str(),
       cmCacheManager::GetInstance()->AddCacheEntry(args[0].c_str(),
                                                    path[k].c_str(),
                                                    path[k].c_str(),