summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBen Boeckel <ben.boeckel@kitware.com>2022-11-28 16:30:34 (GMT)
committerBen Boeckel <ben.boeckel@kitware.com>2022-12-01 13:33:43 (GMT)
commitb0283aaa7ca4b6e3020798ef20cee9f827ce16fc (patch)
treefd6c3b0d75868137ca23ee946ad39092cd3f1949
parent9ee7ee1fc208bef5f6fb65607dfd08e0966351ee (diff)
downloadCMake-b0283aaa7ca4b6e3020798ef20cee9f827ce16fc.zip
CMake-b0283aaa7ca4b6e3020798ef20cee9f827ce16fc.tar.gz
CMake-b0283aaa7ca4b6e3020798ef20cee9f827ce16fc.tar.bz2
cmVisualStudio10TargetGenerator: ask the generator for dyndep support
-rw-r--r--Source/cmVisualStudio10TargetGenerator.cxx3
1 files changed, 2 insertions, 1 deletions
diff --git a/Source/cmVisualStudio10TargetGenerator.cxx b/Source/cmVisualStudio10TargetGenerator.cxx
index e06dc9b..4097f95 100644
--- a/Source/cmVisualStudio10TargetGenerator.cxx
+++ b/Source/cmVisualStudio10TargetGenerator.cxx
@@ -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(),