summaryrefslogtreecommitdiffstats
path: root/Source/cmFindCommon.cxx
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2022-02-10 20:23:07 (GMT)
committerBrad King <brad.king@kitware.com>2022-02-10 21:30:10 (GMT)
commit38de1bef2d10270d5f1be1fef2760310571c4026 (patch)
treea00c50445fc14db6deee51e9d02b497c8ff8e985 /Source/cmFindCommon.cxx
parentd634d203973086f32f6d26e636eb1c9cc1acc545 (diff)
downloadCMake-38de1bef2d10270d5f1be1fef2760310571c4026.zip
CMake-38de1bef2d10270d5f1be1fef2760310571c4026.tar.gz
CMake-38de1bef2d10270d5f1be1fef2760310571c4026.tar.bz2
find_package: Improve --debug-find-pkg= when using a find module
Extend the feature added by commit d7b18895bc (cmake: Add filtered debug-find options, 2021-12-07, v3.23.0-rc1~217^2) to enable debug output for `find_*` calls within a find module or cmake package configuration file. Fixes: #23211
Diffstat (limited to 'Source/cmFindCommon.cxx')
-rw-r--r--Source/cmFindCommon.cxx3
1 files changed, 2 insertions, 1 deletions
diff --git a/Source/cmFindCommon.cxx b/Source/cmFindCommon.cxx
index 1bb98ea..7106e4b 100644
--- a/Source/cmFindCommon.cxx
+++ b/Source/cmFindCommon.cxx
@@ -73,7 +73,8 @@ void cmFindCommon::DebugMessage(std::string const& msg) const
bool cmFindCommon::ComputeIfDebugModeWanted()
{
- return this->Makefile->IsOn("CMAKE_FIND_DEBUG_MODE") ||
+ return this->Makefile->GetDebugFindPkgMode() ||
+ this->Makefile->IsOn("CMAKE_FIND_DEBUG_MODE") ||
this->Makefile->GetCMakeInstance()->GetDebugFindOutput();
}