cmLinkItem: Expose HadHeadSensitiveCondition in cmLinkInterfaceLibraries

Clients may be able to avoid repeating work if they know the transitive
link interface libraries do not depend on what is linking them.
This commit is contained in:
Brad King
2019-07-23 09:52:33 -04:00
parent ad2b3a32d1
commit b5460f9931
+3 -1
View File
@@ -58,6 +58,9 @@ struct cmLinkInterfaceLibraries
{
// Libraries listed in the interface.
std::vector<cmLinkItem> Libraries;
// Whether the list depends on a genex referencing the head target.
bool HadHeadSensitiveCondition = false;
};
struct cmLinkInterface : public cmLinkInterfaceLibraries
@@ -84,7 +87,6 @@ struct cmOptionalLinkInterface : public cmLinkInterface
bool LibrariesDone = false;
bool AllDone = false;
bool Exists = false;
bool HadHeadSensitiveCondition = false;
const char* ExplicitLibraries = nullptr;
};