Просмотр исходного кода

ENH: Handle backticks as a valid library

Andy Cedilnik 22 лет назад
Родитель
Сommit
bdd4f8a216
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      Source/cmLocalUnixMakefileGenerator.cxx

+ 1 - 1
Source/cmLocalUnixMakefileGenerator.cxx

@@ -742,7 +742,7 @@ void cmLocalUnixMakefileGenerator::OutputLinkLibraries(std::ostream& fout,
     // if a variable expands to nothing.
     if (lib->first.size() == 0) continue;
     // if it is a full path break it into -L and -l
-    cmsys::RegularExpression reg("^([ \t]*\\-l)|([ \t]*\\-framework)|(\\${)|([ \t]*\\-pthread)");
+    cmsys::RegularExpression reg("^([ \t]*\\-l)|([ \t]*\\-framework)|(\\${)|([ \t]*\\-pthread)|([ \t]*`)");
     if(lib->first.find('/') != std::string::npos
        && !reg.find(lib->first))
       {