diff options
author | Ben Boeckel <ben.boeckel@kitware.com> | 2023-08-23 20:07:45 (GMT) |
---|---|---|
committer | Ben Boeckel <ben.boeckel@kitware.com> | 2023-08-23 20:47:29 (GMT) |
commit | 571b5e1f2c5569cd555377423930f8d61d5d2e99 (patch) | |
tree | 5f355f292c5707a8a2d1fb25937979e04083edd9 /Source/cmMakefileTargetGenerator.cxx | |
parent | 8b4d32c18b44db48115c1d214560335628b6acc0 (diff) | |
download | CMake-571b5e1f2c5569cd555377423930f8d61d5d2e99.zip CMake-571b5e1f2c5569cd555377423930f8d61d5d2e99.tar.gz CMake-571b5e1f2c5569cd555377423930f8d61d5d2e99.tar.bz2 |
cxxmodules: improve error messages for C++ module setup
Make it clear that:
- the quoted string is a target name; and
- C++ sources that export modules is the important detail.
Diffstat (limited to 'Source/cmMakefileTargetGenerator.cxx')
-rw-r--r-- | Source/cmMakefileTargetGenerator.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Source/cmMakefileTargetGenerator.cxx b/Source/cmMakefileTargetGenerator.cxx index 5f27856..b94f7e9 100644 --- a/Source/cmMakefileTargetGenerator.cxx +++ b/Source/cmMakefileTargetGenerator.cxx @@ -201,9 +201,9 @@ void cmMakefileTargetGenerator::WriteTargetBuildRules() if (this->GeneratorTarget->HaveCxx20ModuleSources()) { this->Makefile->IssueMessage( MessageType::FATAL_ERROR, - cmStrCat("The \"", this->GeneratorTarget->GetName(), - "\" target contains C++ module sources which are not supported " - "by the generator")); + cmStrCat("The target named \"", this->GeneratorTarget->GetName(), + "\" contains C++ sources that export modules which is not " + "supported by the generator")); } // -- Write the custom commands for this target |