瀏覽代碼

Merge topic 'vs-16.4-global-targets'

9df56ece79 Merge branch 'backport-vs-16.4-global-targets'
ac1a1bf18b VS: Tell VS 16.4 not to verify CMake-provided custom command outputs
04e5f30ad3 VS: Tell VS 16.4 not to verify CMake-provided custom command outputs

Acked-by: Kitware Robot <[email protected]>
Merge-request: !3896
Brad King 6 年之前
父節點
當前提交
6bcc8c1c31
共有 1 個文件被更改,包括 4 次插入0 次删除
  1. 4 0
      Source/cmLocalVisualStudio7Generator.cxx

+ 4 - 0
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)) {