summaryrefslogtreecommitdiff
path: root/Source/cmVisualStudio10TargetGenerator.cxx
diff options
context:
space:
mode:
authorDongHun Kwak <dh0128.kwak@samsung.com>2021-10-08 09:13:27 +0900
committerDongHun Kwak <dh0128.kwak@samsung.com>2021-10-08 09:13:27 +0900
commitd3ab5eb53d4ef4c187524c2804aa6e0a6406da89 (patch)
tree5b5254ed4ee1e313ccc439f056c1c05358386e98 /Source/cmVisualStudio10TargetGenerator.cxx
parente7ff50712c4a21dd73051147cb71225f63e05bcf (diff)
downloadcmake-d3ab5eb53d4ef4c187524c2804aa6e0a6406da89.tar.gz
cmake-d3ab5eb53d4ef4c187524c2804aa6e0a6406da89.tar.bz2
cmake-d3ab5eb53d4ef4c187524c2804aa6e0a6406da89.zip
Imported Upstream version 3.12.2upstream/3.12.2
Diffstat (limited to 'Source/cmVisualStudio10TargetGenerator.cxx')
-rw-r--r--Source/cmVisualStudio10TargetGenerator.cxx6
1 files changed, 5 insertions, 1 deletions
diff --git a/Source/cmVisualStudio10TargetGenerator.cxx b/Source/cmVisualStudio10TargetGenerator.cxx
index eff915b47..f472d8a42 100644
--- a/Source/cmVisualStudio10TargetGenerator.cxx
+++ b/Source/cmVisualStudio10TargetGenerator.cxx
@@ -1207,7 +1207,11 @@ void cmVisualStudio10TargetGenerator::WriteCustomCommands(Elem& e0)
this->GeneratorTarget->GetName() != CMAKE_CHECK_BUILD_SYSTEM_TARGET) {
if (cmSourceFile const* sf =
this->LocalGenerator->CreateVCProjBuildRule()) {
- this->WriteCustomCommand(e0, sf);
+ // Write directly rather than through WriteCustomCommand because
+ // we do not want the de-duplication and it has no dependencies.
+ if (cmCustomCommand const* command = sf->GetCustomCommand()) {
+ this->WriteCustomRule(e0, sf, *command);
+ }
}
}
}