summaryrefslogtreecommitdiffstats
path: root/Source/cmVisualStudio10TargetGenerator.cxx
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2018-09-05 18:35:41 (GMT)
committerKitware Robot <kwrobot@kitware.com>2018-09-05 18:35:46 (GMT)
commitb6524f6f3425aaffc1e5fa2f6d3f5847ed3f94f5 (patch)
treec9628dafaf0de078f60515cb70842b2213632423 /Source/cmVisualStudio10TargetGenerator.cxx
parentcb800ebb83646ef4ef2b2e2950d90837bc5c14a7 (diff)
parent0b82e68f2f52847e4c14f1b22e6ef537b42f415a (diff)
downloadCMake-b6524f6f3425aaffc1e5fa2f6d3f5847ed3f94f5.zip
CMake-b6524f6f3425aaffc1e5fa2f6d3f5847ed3f94f5.tar.gz
CMake-b6524f6f3425aaffc1e5fa2f6d3f5847ed3f94f5.tar.bz2
Merge topic 'vs-CMakeLists.txt'
0b82e68f2f VS: Restore CMakeLists.txt references in each target Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !2349
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 ea65e21..1dff675 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);
+ }
}
}
}