ソースを参照

cmComputeLinkDepends: Add undocumented per-target debug property

This will be useful for testing.
Brad King 1 年間 前
コミット
f792db4ca2
1 ファイル変更2 行追加1 行削除
  1. 2 1
      Source/cmComputeLinkDepends.cxx

+ 2 - 1
Source/cmComputeLinkDepends.cxx

@@ -587,7 +587,8 @@ cmComputeLinkDepends::cmComputeLinkDepends(const cmGeneratorTarget* target,
   , GlobalGenerator(this->Target->GetLocalGenerator()->GetGlobalGenerator())
   , CMakeInstance(this->GlobalGenerator->GetCMakeInstance())
   , Config(config)
-  , DebugMode(this->Makefile->IsOn("CMAKE_LINK_DEPENDS_DEBUG_MODE"))
+  , DebugMode(this->Makefile->IsOn("CMAKE_LINK_DEPENDS_DEBUG_MODE") ||
+              this->Target->GetProperty("LINK_DEPENDS_DEBUG_MODE").IsOn())
   , LinkLanguage(linkLanguage)
   , LinkType(CMP0003_ComputeLinkType(
       this->Config, this->Makefile->GetCMakeInstance()->GetDebugConfigs()))