summaryrefslogtreecommitdiffstats
path: root/Source/cmFindPackageCommand.cxx
diff options
context:
space:
mode:
authorRobert Maynard <robert.maynard@kitware.com>2020-09-22 18:13:48 (GMT)
committerRobert Maynard <robert.maynard@kitware.com>2020-09-22 18:13:48 (GMT)
commita7acafc977dbd1f8fdf453c0bda10eafabc811c5 (patch)
treed2efddeb452db25f4a82b89edc8a00feed0946c1 /Source/cmFindPackageCommand.cxx
parent0cb7216b9f016d5749209227502e499b53b33841 (diff)
downloadCMake-a7acafc977dbd1f8fdf453c0bda10eafabc811c5.zip
CMake-a7acafc977dbd1f8fdf453c0bda10eafabc811c5.tar.gz
CMake-a7acafc977dbd1f8fdf453c0bda10eafabc811c5.tar.bz2
FindPackage: find_package(MODULE) respects CMAKE_FIND_DEBUG_MODE
Fixes #21216
Diffstat (limited to 'Source/cmFindPackageCommand.cxx')
-rw-r--r--Source/cmFindPackageCommand.cxx5
1 files changed, 5 insertions, 0 deletions
diff --git a/Source/cmFindPackageCommand.cxx b/Source/cmFindPackageCommand.cxx
index c462651..87c0834 100644
--- a/Source/cmFindPackageCommand.cxx
+++ b/Source/cmFindPackageCommand.cxx
@@ -578,6 +578,11 @@ bool cmFindPackageCommand::InitialPass(std::vector<std::string> const& args)
loadedPackage = true;
}
}
+
+ if (this->DebugMode) {
+ this->DebugMessage(this->DebugBuffer);
+ this->DebugBuffer.clear();
+ }
}
this->AppendSuccessInformation();