summaryrefslogtreecommitdiffstats
path: root/Source
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2023-11-29 12:51:31 (GMT)
committerKitware Robot <kwrobot@kitware.com>2023-11-29 12:51:41 (GMT)
commit1b82da7e151d83c38b7a48e4ab39c8ef0f853350 (patch)
treef1d6f604ae57317906fda6bebeb8bdb7cd3092ce /Source
parent503aa3c3cc2799244a19bae49f1ad2f1d7a4baad (diff)
parentcbd549b09e7f8c0baa8142eda221e686b132f2a4 (diff)
downloadCMake-1b82da7e151d83c38b7a48e4ab39c8ef0f853350.zip
CMake-1b82da7e151d83c38b7a48e4ab39c8ef0f853350.tar.gz
CMake-1b82da7e151d83c38b7a48e4ab39c8ef0f853350.tar.bz2
Merge topic 'cxxmodules-diagnostics' into release-3.28
cbd549b09e cxxmodules: Add more suggestions to no-modules-support diagnostics Acked-by: Kitware Robot <kwrobot@kitware.com> Tested-by: buildbot <buildbot@kitware.com> Merge-request: !9011
Diffstat (limited to 'Source')
-rw-r--r--Source/cmGeneratorTarget.cxx19
1 files changed, 12 insertions, 7 deletions
diff --git a/Source/cmGeneratorTarget.cxx b/Source/cmGeneratorTarget.cxx
index 8d21e63..4b4d8b9 100644
--- a/Source/cmGeneratorTarget.cxx
+++ b/Source/cmGeneratorTarget.cxx
@@ -9227,11 +9227,15 @@ void cmGeneratorTarget::CheckCxxModuleStatus(std::string const& config) const
cmGlobalGenerator::CxxModuleSupportQuery::Expected)) {
this->Makefile->IssueMessage(
MessageType::FATAL_ERROR,
- cmStrCat(
- "The target named \"", this->GetName(),
- "\" has C++ sources that may use modules, but modules are not "
- "supported by this generator. See the cmake-cxxmodules(7) manual "
- "and the CMAKE_CXX_SCAN_FOR_MODULES variable."));
+ cmStrCat("The target named \"", this->GetName(),
+ "\" has C++ sources that may use modules, but modules are not "
+ "supported by this generator:\n ",
+ this->GetGlobalGenerator()->GetName(), '\n',
+ "Modules are supported only by Ninja, Ninja Multi-Config, "
+ "and Visual Studio generators for VS 17.4 and newer. "
+ "See the cmake-cxxmodules(7) manual for details. "
+ "Use the CMAKE_CXX_SCAN_FOR_MODULES variable to enable or "
+ "disable scanning."));
return;
}
@@ -9266,8 +9270,9 @@ void cmGeneratorTarget::CheckCxxModuleStatus(std::string const& config) const
cmStrCat("The target named \"", this->GetName(),
"\" has C++ sources that may use modules, but the compiler "
"does not provide a way to discover the import graph "
- "dependencies. See the cmake-cxxmodules(7) manual "
- "and the CMAKE_CXX_SCAN_FOR_MODULES variable."));
+ "dependencies. See the cmake-cxxmodules(7) manual for "
+ "details. Use the CMAKE_CXX_SCAN_FOR_MODULES variable to "
+ "enable or disable scanning."));
} break;
case cmGeneratorTarget::Cxx20SupportLevel::Supported:
// All is well.