summaryrefslogtreecommitdiffstats
path: root/Source
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2024-09-18 22:28:13 (GMT)
committerBrad King <brad.king@kitware.com>2024-09-20 17:45:46 (GMT)
commitf792db4ca2b41e1263cfc6825bb53bc3f6bb9606 (patch)
tree68dcff2db009c704ab3224f5d3c72f5639755bfd /Source
parent80b469a51de05984c47149ab093d7f2fcf9b9816 (diff)
downloadCMake-f792db4ca2b41e1263cfc6825bb53bc3f6bb9606.zip
CMake-f792db4ca2b41e1263cfc6825bb53bc3f6bb9606.tar.gz
CMake-f792db4ca2b41e1263cfc6825bb53bc3f6bb9606.tar.bz2
cmComputeLinkDepends: Add undocumented per-target debug property
This will be useful for testing.
Diffstat (limited to 'Source')
-rw-r--r--Source/cmComputeLinkDepends.cxx3
1 files changed, 2 insertions, 1 deletions
diff --git a/Source/cmComputeLinkDepends.cxx b/Source/cmComputeLinkDepends.cxx
index 21bc8ae..976a158 100644
--- a/Source/cmComputeLinkDepends.cxx
+++ b/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()))