summaryrefslogtreecommitdiffstats
path: root/Source/cmLinkItem.h
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2024-07-15 15:52:37 (GMT)
committerBrad King <brad.king@kitware.com>2024-07-15 18:08:10 (GMT)
commit7a77a6c642eac544e3761272222696a76fcc78a8 (patch)
treec4aa5be08e5e3e09509fe4e18c0a91579ef8adaa /Source/cmLinkItem.h
parentb9e2f6828fbeb20b860736234c60cb67d4413bdf (diff)
downloadCMake-7a77a6c642eac544e3761272222696a76fcc78a8.zip
CMake-7a77a6c642eac544e3761272222696a76fcc78a8.tar.gz
CMake-7a77a6c642eac544e3761272222696a76fcc78a8.tar.bz2
Restore support for exporting INTERFACE with missing dependencies
Since commit c16acd35b3 (GenEx: Add support for custom transitive link properties, 2024-05-09, v3.30.0-rc1~82^2) evaluation of `TRANSITIVE_LINK_PROPERTIES` by `install(EXPORT)` enables discovery of missing dependencies on INTERFACE libraries that we did not previously diagnose. This regressed existing projects that relied on such non-diagnosis. Although commit 2fc9e482a9 (Evaluation of TRANSITIVE_LINK_PROPERTIES isn't considered a usage, 2024-07-05) fixed this, it also made a significant change to the `UseTo` infrastructure that may have other subtle effects. Replace the fix with an approach that explicitly models suppression of the relevant diagnostics. Fixes: #26108
Diffstat (limited to 'Source/cmLinkItem.h')
-rw-r--r--Source/cmLinkItem.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/Source/cmLinkItem.h b/Source/cmLinkItem.h
index bd1531b..4e356b7 100644
--- a/Source/cmLinkItem.h
+++ b/Source/cmLinkItem.h
@@ -120,11 +120,11 @@ struct cmLinkInterface : public cmLinkInterfaceLibraries
struct cmOptionalLinkInterface : public cmLinkInterface
{
- bool LinkOnlyEval = false;
bool LibrariesDone = false;
bool AllDone = false;
bool Exists = false;
bool Explicit = false;
+ bool CheckLinkLibraries = false;
};
struct cmHeadToLinkInterfaceMap
@@ -149,6 +149,7 @@ struct cmOptionalLinkImplementation : public cmLinkImplementation
bool LibrariesDone = false;
bool LanguagesDone = false;
bool HadHeadSensitiveCondition = false;
+ bool CheckLinkLibraries = false;
};
/** Compute the link type to use for the given configuration. */