mirror of
https://github.com/Kitware/CMake.git
synced 2026-04-22 14:23:10 -05:00
Merge topic 'cxxmodules-vs-no-synthetic-targets' into release-3.28
17fd7fe2aeTests/CXXModules: test Visual Studio synthetic target errorbadb6ab120VS: Explicitly disallow C++ modules provided by imported targets Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !8895
This commit is contained in:
@@ -358,6 +358,15 @@ std::ostream& cmVisualStudio10TargetGenerator::Elem::WriteString(
|
||||
|
||||
void cmVisualStudio10TargetGenerator::Generate()
|
||||
{
|
||||
if (this->GeneratorTarget->IsSynthetic()) {
|
||||
this->GeneratorTarget->Makefile->IssueMessage(
|
||||
MessageType::FATAL_ERROR,
|
||||
cmStrCat("Target \"", this->GeneratorTarget->GetName(),
|
||||
"\" contains C++ modules intended for BMI-only compilation. "
|
||||
"This is not yet supported by the Visual Studio generator."));
|
||||
return;
|
||||
}
|
||||
|
||||
for (std::string const& config : this->Configurations) {
|
||||
this->GeneratorTarget->CheckCxxModuleStatus(config);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user