summaryrefslogtreecommitdiffstats
path: root/Source/cmGlobalNinjaGenerator.cxx
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2020-03-04 13:17:55 (GMT)
committerKitware Robot <kwrobot@kitware.com>2020-03-04 13:18:03 (GMT)
commit26f728ca780ae195651a8e4d56a66c53d6da159a (patch)
treebcb926522d2914d7b634dadc9accfe6e623944f2 /Source/cmGlobalNinjaGenerator.cxx
parentd674c3a5bc7599ad5cd974c13b655a7d36d9c5c9 (diff)
parent8b799f80e3d23653486a9feac7aa2929e0abebff (diff)
downloadCMake-26f728ca780ae195651a8e4d56a66c53d6da159a.zip
CMake-26f728ca780ae195651a8e4d56a66c53d6da159a.tar.gz
CMake-26f728ca780ae195651a8e4d56a66c53d6da159a.tar.bz2
Merge topic 'ninja-multi-spurious-unused-variables'
8b799f80e3 Ninja Multi-Config: Fix spurious unused variable warning Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !4421
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 86b1e0b..e59664b 100644
--- a/Source/cmGlobalNinjaGenerator.cxx
+++ b/Source/cmGlobalNinjaGenerator.cxx
@@ -2602,6 +2602,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());
}