diff options
author | Ben Boeckel <ben.boeckel@kitware.com> | 2022-11-23 20:21:59 (GMT) |
---|---|---|
committer | Ben Boeckel <ben.boeckel@kitware.com> | 2022-11-23 22:31:31 (GMT) |
commit | 5e026739e10f4cf5241f27fb9ba6721edb854018 (patch) | |
tree | 9d7ef765c1ad70d2957d159962bba3b23de835bf /Source/cmGlobalGenerator.cxx | |
parent | 9b9a42166803e864a8b08c22cadfe8db447acb40 (diff) | |
download | CMake-5e026739e10f4cf5241f27fb9ba6721edb854018.zip CMake-5e026739e10f4cf5241f27fb9ba6721edb854018.tar.gz CMake-5e026739e10f4cf5241f27fb9ba6721edb854018.tar.bz2 |
cmGlobalGenerator: factor out C++ module support checking
This will simplify adding support to other generators.
Diffstat (limited to 'Source/cmGlobalGenerator.cxx')
-rw-r--r-- | Source/cmGlobalGenerator.cxx | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/Source/cmGlobalGenerator.cxx b/Source/cmGlobalGenerator.cxx index a9485b5..8ca6ee6 100644 --- a/Source/cmGlobalGenerator.cxx +++ b/Source/cmGlobalGenerator.cxx @@ -1439,6 +1439,19 @@ bool cmGlobalGenerator::CheckALLOW_DUPLICATE_CUSTOM_TARGETS() const return false; } +void cmGlobalGenerator::CxxModuleSupportCheck() const +{ + bool const diagnose = !this->DiagnosedCxxModuleSupport && + !this->CMakeInstance->GetIsInTryCompile(); + if (diagnose) { + this->DiagnosedCxxModuleSupport = true; + this->GetCMakeInstance()->IssueMessage( + MessageType::AUTHOR_WARNING, + "C++20 modules support via CMAKE_EXPERIMENTAL_CXX_MODULE_DYNDEP " + "is experimental. It is meant only for compiler developers to try."); + } +} + void cmGlobalGenerator::ComputeBuildFileGenerators() { for (unsigned int i = 0; i < this->LocalGenerators.size(); ++i) { @@ -1597,6 +1610,8 @@ void cmGlobalGenerator::Generate() // it builds by default. this->InitializeProgressMarks(); + this->DiagnosedCxxModuleSupport = false; + this->ProcessEvaluationFiles(); this->CMakeInstance->UpdateProgress("Generating", 0.1f); |