diff options
author | Ben Boeckel <ben.boeckel@kitware.com> | 2023-07-19 20:40:52 (GMT) |
---|---|---|
committer | Ben Boeckel <ben.boeckel@kitware.com> | 2023-07-31 15:37:47 (GMT) |
commit | 1a538ae07c5a859158e603c6075b352c5f5e294e (patch) | |
tree | a74207da97cbbd35fd79b70b66453810d873faeb /Source/cmCoreTryCompile.cxx | |
parent | 04300579ddcb8d6bdd6e653b06b60bae378826dc (diff) | |
download | CMake-1a538ae07c5a859158e603c6075b352c5f5e294e.zip CMake-1a538ae07c5a859158e603c6075b352c5f5e294e.tar.gz CMake-1a538ae07c5a859158e603c6075b352c5f5e294e.tar.bz2 |
cmExperimental: use an `enum` for whether to forward to try_compile
Diffstat (limited to 'Source/cmCoreTryCompile.cxx')
-rw-r--r-- | Source/cmCoreTryCompile.cxx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Source/cmCoreTryCompile.cxx b/Source/cmCoreTryCompile.cxx index cddbb9b..74f0320 100644 --- a/Source/cmCoreTryCompile.cxx +++ b/Source/cmCoreTryCompile.cxx @@ -1077,7 +1077,8 @@ cm::optional<cmTryCompileResult> cmCoreTryCompile::TryCompileCode( i++) { auto const& data = cmExperimental::DataForFeature( static_cast<cmExperimental::Feature>(i)); - if (data.ForwardThroughTryCompile) { + if (data.ForwardThroughTryCompile == + cmExperimental::TryCompileCondition::Always) { vars.insert(data.Variable); } } |