Procházet zdrojové kódy

Don't prepend a path before generator expressions in include_directories.

Stephen Kelly před 13 roky
rodič
revize
4557c8db48
1 změnil soubory, kde provedl 7 přidání a 4 odebrání
  1. 7 4
      Source/cmIncludeDirectoryCommand.cxx

+ 7 - 4
Source/cmIncludeDirectoryCommand.cxx

@@ -105,10 +105,13 @@ void cmIncludeDirectoryCommand::AddDirectory(const char *i,
     cmSystemTools::ConvertToUnixSlashes(ret);
     if(!cmSystemTools::FileIsFullPath(ret.c_str()))
       {
-      std::string tmp = this->Makefile->GetStartDirectory();
-      tmp += "/";
-      tmp += ret;
-      ret = tmp;
+      if(ret[0] != '$' && ret[1] != '<')
+        {
+        std::string tmp = this->Makefile->GetStartDirectory();
+        tmp += "/";
+        tmp += ret;
+        ret = tmp;
+        }
       }
     }
   this->Makefile->AddIncludeDirectory(ret.c_str(), before);