diff --git a/Source/cmComputeLinkDepends.cxx b/Source/cmComputeLinkDepends.cxx index 21bc8ae35d..976a158045 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()))