diff options
author | Brad King <brad.king@kitware.com> | 2018-09-05 18:33:06 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2018-09-05 18:33:06 (GMT) |
commit | 925b95fbadae0fe59f38b744dfb0f665436d8d11 (patch) | |
tree | e9ebe0abe50f1aeee2837f61c106cc7416a02b72 /Source | |
parent | 6be7097dbe7373e78d5a3fe054895443f962aa0a (diff) | |
parent | 0b82e68f2f52847e4c14f1b22e6ef537b42f415a (diff) | |
download | CMake-925b95fbadae0fe59f38b744dfb0f665436d8d11.zip CMake-925b95fbadae0fe59f38b744dfb0f665436d8d11.tar.gz CMake-925b95fbadae0fe59f38b744dfb0f665436d8d11.tar.bz2 |
Merge branch 'vs-CMakeLists.txt' into release-3.12
Merge-request: !2349
Diffstat (limited to 'Source')
-rw-r--r-- | Source/cmVisualStudio10TargetGenerator.cxx | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/Source/cmVisualStudio10TargetGenerator.cxx b/Source/cmVisualStudio10TargetGenerator.cxx index eff915b..f472d8a 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); + } } } } |