From abc6377469eb5bfeac77d1e7c1eec456223f43d7 Mon Sep 17 00:00:00 2001 From: Dietmar Scheidl Date: Mon, 11 Oct 2021 15:12:37 +0200 Subject: VS: Add OBJECT_DEPENDS as AdditionalDependencies Fixes: #22733 --- Source/cmVisualStudio10TargetGenerator.cxx | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/Source/cmVisualStudio10TargetGenerator.cxx b/Source/cmVisualStudio10TargetGenerator.cxx index e9ff758..72d8d5a 100644 --- a/Source/cmVisualStudio10TargetGenerator.cxx +++ b/Source/cmVisualStudio10TargetGenerator.cxx @@ -2491,6 +2491,22 @@ void cmVisualStudio10TargetGenerator::OutputSourceSpecificFlags( e2.Element("ObjectFileName", "$(IntDir)/" + objectName); } } + + if (lang == "ASM_NASM") { + if (cmValue objectDeps = sf.GetProperty("OBJECT_DEPENDS")) { + std::string dependencies; + std::vector depends = cmExpandedList(*objectDeps); + const char* sep = ""; + for (std::string& d : depends) { + ConvertToWindowsSlash(d); + dependencies += sep; + dependencies += d; + sep = ";"; + } + e2.Element("AdditionalDependencies", dependencies); + } + } + for (std::string const& config : this->Configurations) { std::string configUpper = cmSystemTools::UpperCase(config); std::string configDefines = defines; -- cgit v0.12