cmVisualStudio10TargetGenerator: ask the generator for dyndep support

This commit is contained in:
Ben Boeckel
2022-11-28 11:30:34 -05:00
parent 9ee7ee1fc2
commit b0283aaa7c

View File

@@ -356,7 +356,8 @@ void cmVisualStudio10TargetGenerator::Generate()
this->GeneratorTarget->CheckCxxModuleStatus(config);
}
if (this->GeneratorTarget->HaveCxx20ModuleSources()) {
if (this->GeneratorTarget->HaveCxx20ModuleSources() &&
!this->GlobalGenerator->SupportsCxxModuleDyndep()) {
this->Makefile->IssueMessage(
MessageType::FATAL_ERROR,
cmStrCat("The \"", this->GeneratorTarget->GetName(),