cmGlobalGenerator: mark intermediate directory strategy variables as used

Fixes: #27222
This commit is contained in:
Ben Boeckel
2025-09-12 13:58:34 -04:00
parent 568e3318bc
commit 9ad31a0d88
+3
View File
@@ -1444,6 +1444,7 @@ bool cmGlobalGenerator::Compute()
if (cmValue v = this->CMakeInstance->GetCacheDefinition(
"CMAKE_INTERMEDIATE_DIR_STRATEGY")) {
this->GetCMakeInstance()->MarkCliAsUsed("CMAKE_INTERMEDIATE_DIR_STRATEGY");
if (*v == "FULL") {
this->IntDirStrategy = IntermediateDirStrategy::Full;
} else if (*v == "SHORT") {
@@ -1457,6 +1458,8 @@ bool cmGlobalGenerator::Compute()
}
if (cmValue v = this->CMakeInstance->GetCacheDefinition(
"CMAKE_AUTOGEN_INTERMEDIATE_DIR_STRATEGY")) {
this->GetCMakeInstance()->MarkCliAsUsed(
"CMAKE_AUTOGEN_INTERMEDIATE_DIR_STRATEGY");
if (*v == "FULL") {
this->QtAutogenIntDirStrategy = IntermediateDirStrategy::Full;
} else if (*v == "SHORT") {