diff options
author | Dietmar Scheidl <dietmar.scheidl@dynatrace.com> | 2021-10-11 13:12:37 (GMT) |
---|---|---|
committer | Dietmar Scheidl <dietmar.scheidl@dynatrace.com> | 2021-12-09 15:22:10 (GMT) |
commit | abc6377469eb5bfeac77d1e7c1eec456223f43d7 (patch) | |
tree | e64868ec3112457a470228fd32e2a51f99a10ee9 | |
parent | f9a657ee5d27c89d14e5050c48a1d98cf5bf2e05 (diff) | |
download | CMake-abc6377469eb5bfeac77d1e7c1eec456223f43d7.zip CMake-abc6377469eb5bfeac77d1e7c1eec456223f43d7.tar.gz CMake-abc6377469eb5bfeac77d1e7c1eec456223f43d7.tar.bz2 |
VS: Add OBJECT_DEPENDS as AdditionalDependencies
Fixes: #22733
-rw-r--r-- | Source/cmVisualStudio10TargetGenerator.cxx | 16 |
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; |