summaryrefslogtreecommitdiffstats
path: root/Source/cmGlobalNinjaGenerator.cxx
diff options
context:
space:
mode:
authorKyle Edwards <kyle.edwards@kitware.com>2020-03-03 16:12:22 (GMT)
committerKyle Edwards <kyle.edwards@kitware.com>2020-03-03 20:52:36 (GMT)
commit8b799f80e3d23653486a9feac7aa2929e0abebff (patch)
tree0be92ef8dd3f4bc53930bf99674d7e1da4bcd2db /Source/cmGlobalNinjaGenerator.cxx
parentd1cb554c99c73e1486fbf4e09125337a7c0e9ea3 (diff)
downloadCMake-8b799f80e3d23653486a9feac7aa2929e0abebff.zip
CMake-8b799f80e3d23653486a9feac7aa2929e0abebff.tar.gz
CMake-8b799f80e3d23653486a9feac7aa2929e0abebff.tar.bz2
Ninja Multi-Config: Fix spurious unused variable warning
Fixes: #20381
Diffstat (limited to 'Source/cmGlobalNinjaGenerator.cxx')
-rw-r--r--Source/cmGlobalNinjaGenerator.cxx3
1 files changed, 3 insertions, 0 deletions
diff --git a/Source/cmGlobalNinjaGenerator.cxx b/Source/cmGlobalNinjaGenerator.cxx
index 5243c36..d3ee8f9 100644
--- a/Source/cmGlobalNinjaGenerator.cxx
+++ b/Source/cmGlobalNinjaGenerator.cxx
@@ -2600,6 +2600,9 @@ void cmGlobalNinjaMultiGenerator::GetQtAutoGenConfigs(
bool cmGlobalNinjaMultiGenerator::InspectConfigTypeVariables()
{
+ this->GetCMakeInstance()->MarkCliAsUsed("CMAKE_DEFAULT_BUILD_TYPE");
+ this->GetCMakeInstance()->MarkCliAsUsed("CMAKE_CROSS_CONFIGS");
+ this->GetCMakeInstance()->MarkCliAsUsed("CMAKE_DEFAULT_CONFIGS");
return this->ReadCacheEntriesForBuild(*this->Makefiles.front()->GetState());
}