summaryrefslogtreecommitdiffstats
path: root/Source
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2021-12-10 14:15:22 (GMT)
committerKitware Robot <kwrobot@kitware.com>2021-12-10 14:15:46 (GMT)
commita6fa3fa136c291c36aefbc79b62995a63bf9107b (patch)
tree1a35ba121e62e0248281a48e5d1b4ce2532e976f /Source
parent9f5e0629df6d7681a520e1de8eff166c278f7c68 (diff)
parentabc6377469eb5bfeac77d1e7c1eec456223f43d7 (diff)
downloadCMake-a6fa3fa136c291c36aefbc79b62995a63bf9107b.zip
CMake-a6fa3fa136c291c36aefbc79b62995a63bf9107b.tar.gz
CMake-a6fa3fa136c291c36aefbc79b62995a63bf9107b.tar.bz2
Merge topic 'msbuild-target-inputs-object-depends'
abc6377469 VS: Add OBJECT_DEPENDS as AdditionalDependencies Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !6775
Diffstat (limited to 'Source')
-rw-r--r--Source/cmVisualStudio10TargetGenerator.cxx16
1 files changed, 16 insertions, 0 deletions
diff --git a/Source/cmVisualStudio10TargetGenerator.cxx b/Source/cmVisualStudio10TargetGenerator.cxx
index 16f52e0..5bec7d3 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;