mirror of
https://github.com/Kitware/CMake.git
synced 2026-01-06 13:51:33 -06:00
Merge topic 'msbuild-target-inputs-object-depends'
abc6377469 VS: Add OBJECT_DEPENDS as AdditionalDependencies
Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !6775
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user