diff options
author | Ben Boeckel <ben.boeckel@kitware.com> | 2023-10-31 17:09:36 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2023-11-01 13:52:13 (GMT) |
commit | 1f507580a13b2883a016cab2f18cf3d6f868d269 (patch) | |
tree | 22b2bc7cf5742b25764c6cd6c197892f666f4532 /Source/cmGlobalNinjaGenerator.cxx | |
parent | 889aa0354aa533dce0e96334401267aa30bff215 (diff) | |
download | CMake-1f507580a13b2883a016cab2f18cf3d6f868d269.zip CMake-1f507580a13b2883a016cab2f18cf3d6f868d269.tar.gz CMake-1f507580a13b2883a016cab2f18cf3d6f868d269.tar.bz2 |
cmGlobalGenerator: give context about module queries
Some queries are merely investigating support in order to change
behavior. Let the method know so that any internal errors can be skipped
over.
Diffstat (limited to 'Source/cmGlobalNinjaGenerator.cxx')
-rw-r--r-- | Source/cmGlobalNinjaGenerator.cxx | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/Source/cmGlobalNinjaGenerator.cxx b/Source/cmGlobalNinjaGenerator.cxx index 7368a6a..d691d88 100644 --- a/Source/cmGlobalNinjaGenerator.cxx +++ b/Source/cmGlobalNinjaGenerator.cxx @@ -882,13 +882,14 @@ bool cmGlobalNinjaGenerator::CheckLanguages( return true; } -bool cmGlobalNinjaGenerator::CheckCxxModuleSupport() +bool cmGlobalNinjaGenerator::CheckCxxModuleSupport(CxxModuleSupportQuery query) { if (this->NinjaSupportsDyndepsCxx) { return true; } bool const diagnose = !this->DiagnosedCxxModuleNinjaSupport && - !this->CMakeInstance->GetIsInTryCompile(); + !this->CMakeInstance->GetIsInTryCompile() && + query == CxxModuleSupportQuery::Expected; if (diagnose) { std::ostringstream e; /* clang-format off */ |