summaryrefslogtreecommitdiffstats
path: root/Source/cmVisualStudio10TargetGenerator.cxx
diff options
context:
space:
mode:
authorDietmar Scheidl <dietmar.scheidl@dynatrace.com>2021-10-11 13:12:37 (GMT)
committerDietmar Scheidl <dietmar.scheidl@dynatrace.com>2021-12-09 15:22:10 (GMT)
commitabc6377469eb5bfeac77d1e7c1eec456223f43d7 (patch)
treee64868ec3112457a470228fd32e2a51f99a10ee9 /Source/cmVisualStudio10TargetGenerator.cxx
parentf9a657ee5d27c89d14e5050c48a1d98cf5bf2e05 (diff)
downloadCMake-abc6377469eb5bfeac77d1e7c1eec456223f43d7.zip
CMake-abc6377469eb5bfeac77d1e7c1eec456223f43d7.tar.gz
CMake-abc6377469eb5bfeac77d1e7c1eec456223f43d7.tar.bz2
VS: Add OBJECT_DEPENDS as AdditionalDependencies
Fixes: #22733
Diffstat (limited to 'Source/cmVisualStudio10TargetGenerator.cxx')
-rw-r--r--Source/cmVisualStudio10TargetGenerator.cxx16
1 files changed, 16 insertions, 0 deletions
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<std::string> 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;