summaryrefslogtreecommitdiffstats
path: root/Source
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:41:31 (GMT)
commit04e5f30ad3f15d47939f5d7a8f53a7f390c6a3f5 (patch)
treed6e4d5f8a6235ee731107b606d935cb72b427ff0 /Source
parentead89868ba09bb331ae31c116f1cec4a44713b3b (diff)
downloadCMake-04e5f30ad3f15d47939f5d7a8f53a7f390c6a3f5.zip
CMake-04e5f30ad3f15d47939f5d7a8f53a7f390c6a3f5.tar.gz
CMake-04e5f30ad3f15d47939f5d7a8f53a7f390c6a3f5.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
Diffstat (limited to 'Source')
-rw-r--r--Source/cmLocalVisualStudio7Generator.cxx4
1 files changed, 4 insertions, 0 deletions
diff --git a/Source/cmLocalVisualStudio7Generator.cxx b/Source/cmLocalVisualStudio7Generator.cxx
index e16e851..ce2e513 100644
--- a/Source/cmLocalVisualStudio7Generator.cxx
+++ b/Source/cmLocalVisualStudio7Generator.cxx
@@ -98,6 +98,10 @@ void cmLocalVisualStudio7Generator::FixGlobalTargets()
std::string no_main_dependency;
std::string force = cmStrCat(this->GetCurrentBinaryDirectory(),
"/CMakeFiles/", l->GetName(), "_force");
+ if (cmSourceFile* sf =
+ this->Makefile->GetOrCreateGeneratedSource(force)) {
+ sf->SetProperty("SYMBOLIC", "1");
+ }
if (cmSourceFile* file = this->Makefile->AddCustomCommandToOutput(
force.c_str(), no_depends, no_main_dependency, force_commands, " ",
0, true)) {