diff options
author | Robert Maynard <rmaynard@nvidia.com> | 2023-04-11 19:49:52 (GMT) |
---|---|---|
committer | Robert Maynard <rmaynard@nvidia.com> | 2023-05-04 13:39:06 (GMT) |
commit | c42630ee62df80e649211e99c510cab7ac28fc0b (patch) | |
tree | 8b450a62d4e4c9559b8fe03b11575bde8d154608 /Source/cmGeneratorExpressionDAGChecker.h | |
parent | 0fb923c46041d67110c8e0907afdf66b3b25f25a (diff) | |
download | CMake-c42630ee62df80e649211e99c510cab7ac28fc0b.zip CMake-c42630ee62df80e649211e99c510cab7ac28fc0b.tar.gz CMake-c42630ee62df80e649211e99c510cab7ac28fc0b.tar.bz2 |
cmGeneratorExpressionNode: implement `COMPILE_ONLY` genex
This generator expression is the inverse of `LINK_ONLY` and only coveys
usage requirements for the purposes of compilation. Its intended use is
to avoid needing to export targets that do not have link usage
requirements (e.g., header-only libraries) when used by another target.
See: #15415
Diffstat (limited to 'Source/cmGeneratorExpressionDAGChecker.h')
-rw-r--r-- | Source/cmGeneratorExpressionDAGChecker.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Source/cmGeneratorExpressionDAGChecker.h b/Source/cmGeneratorExpressionDAGChecker.h index df1e005..1919b01 100644 --- a/Source/cmGeneratorExpressionDAGChecker.h +++ b/Source/cmGeneratorExpressionDAGChecker.h @@ -90,6 +90,9 @@ struct cmGeneratorExpressionDAGChecker bool GetTransitivePropertiesOnly() const; void SetTransitivePropertiesOnly() { this->TransitivePropertiesOnly = true; } + bool GetTransitivePropertiesOnlyCMP0131() const; + void SetTransitivePropertiesOnlyCMP0131() { this->CMP0131 = true; } + cmGeneratorExpressionDAGChecker const* Top() const; cmGeneratorTarget const* TopTarget() const; @@ -105,4 +108,5 @@ private: const cmListFileBacktrace Backtrace; Result CheckResult; bool TransitivePropertiesOnly; + bool CMP0131; }; |