|
|
@@ -2245,6 +2245,14 @@ static std::string targetNameGenex(const char *lib)
|
|
|
return std::string("$<TARGET_NAME:") + lib + ">";
|
|
|
}
|
|
|
|
|
|
+//----------------------------------------------------------------------------
|
|
|
+static bool isGeneratorExpression(const std::string &lib)
|
|
|
+{
|
|
|
+ const std::string::size_type openpos = lib.find("$<");
|
|
|
+ return (openpos != std::string::npos)
|
|
|
+ && (lib.find(">", openpos) != std::string::npos);
|
|
|
+}
|
|
|
+
|
|
|
//----------------------------------------------------------------------------
|
|
|
void cmTarget::AddLinkLibrary(cmMakefile& mf,
|
|
|
const char *target, const char* lib,
|
|
|
@@ -2267,6 +2275,11 @@ void cmTarget::AddLinkLibrary(cmMakefile& mf,
|
|
|
llt).c_str());
|
|
|
}
|
|
|
|
|
|
+ if (isGeneratorExpression(lib))
|
|
|
+ {
|
|
|
+ return;
|
|
|
+ }
|
|
|
+
|
|
|
cmTarget::LibraryID tmp;
|
|
|
tmp.first = lib;
|
|
|
tmp.second = llt;
|