summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2019-10-07 21:35:53 (GMT)
committerBrad King <brad.king@kitware.com>2019-10-07 21:44:32 (GMT)
commitac1a1bf18bd3d395fd17eddbc5a38e710e737664 (patch)
tree2af7132ba94b0f5bdd343ad494e41110548fc101
parent6fb747a01c27a2226fe4cbf77bc19e6d21286f81 (diff)
downloadCMake-ac1a1bf18bd3d395fd17eddbc5a38e710e737664.zip
CMake-ac1a1bf18bd3d395fd17eddbc5a38e710e737664.tar.gz
CMake-ac1a1bf18bd3d395fd17eddbc5a38e710e737664.tar.bz2
VS: Tell VS 16.4 not to verify CMake-provided custom command outputs
Extend the fix from commit 0578239d3a (VS: Tell VS 16.4 not to verify SYMBOLIC custom command outputs, 2019-09-23, v3.15.4~2^2) to apply to outputs in CMake-provided targets like `install`. Simply mark these outputs as `SYMBOLIC` too since they are not actually generated. Fixes: #19737
-rw-r--r--Source/cmLocalVisualStudio7Generator.cxx4
1 files changed, 4 insertions, 0 deletions
diff --git a/Source/cmLocalVisualStudio7Generator.cxx b/Source/cmLocalVisualStudio7Generator.cxx
index 8154f3e..82a1170 100644
--- a/Source/cmLocalVisualStudio7Generator.cxx
+++ b/Source/cmLocalVisualStudio7Generator.cxx
@@ -102,6 +102,10 @@ void cmLocalVisualStudio7Generator::FixGlobalTargets()
force += "/";
force += l->GetName();
force += "_force";
+ if (cmSourceFile* sf = this->Makefile->GetOrCreateSource(
+ force, true, cmSourceFileLocationKind::Known)) {
+ sf->SetProperty("SYMBOLIC", "1");
+ }
if (cmSourceFile* file = this->Makefile->AddCustomCommandToOutput(
force.c_str(), no_depends, no_main_dependency, force_commands, " ",
0, true)) {