summaryrefslogtreecommitdiffstats
path: root/Source/cmCoreTryCompile.cxx
diff options
context:
space:
mode:
authorBen Boeckel <ben.boeckel@kitware.com>2023-07-19 20:40:52 (GMT)
committerBen Boeckel <ben.boeckel@kitware.com>2023-07-31 15:37:47 (GMT)
commit1a538ae07c5a859158e603c6075b352c5f5e294e (patch)
treea74207da97cbbd35fd79b70b66453810d873faeb /Source/cmCoreTryCompile.cxx
parent04300579ddcb8d6bdd6e653b06b60bae378826dc (diff)
downloadCMake-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.cxx3
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);
}
}