summaryrefslogtreecommitdiffstats
path: root/Source/cmFindPackageCommand.cxx
diff options
context:
space:
mode:
authorAlex Turbov <i.zaufi@gmail.com>2022-06-27 04:21:49 (GMT)
committerAlex Turbov <i.zaufi@gmail.com>2022-07-11 13:14:01 (GMT)
commit865cfaa492e31609152b1631e94d2bfa41a9e314 (patch)
tree480ac75597193cde0cd48f9306321d12a35791ea /Source/cmFindPackageCommand.cxx
parent6a95ab97e77faca8ba7775683f307cd32c82f47f (diff)
downloadCMake-865cfaa492e31609152b1631e94d2bfa41a9e314.zip
CMake-865cfaa492e31609152b1631e94d2bfa41a9e314.tar.gz
CMake-865cfaa492e31609152b1631e94d2bfa41a9e314.tar.bz2
cmFindPackageCommand: Move `collectPathsForDebug()` to anonymous namespace
Diffstat (limited to 'Source/cmFindPackageCommand.cxx')
-rw-r--r--Source/cmFindPackageCommand.cxx30
1 files changed, 15 insertions, 15 deletions
diff --git a/Source/cmFindPackageCommand.cxx b/Source/cmFindPackageCommand.cxx
index 75aaba1..f3924c4 100644
--- a/Source/cmFindPackageCommand.cxx
+++ b/Source/cmFindPackageCommand.cxx
@@ -56,6 +56,21 @@ struct StrverscmpOp
}
};
+std::size_t collectPathsForDebug(std::string& buffer,
+ cmSearchPath const& searchPath,
+ std::size_t startIndex = 0)
+{
+ const auto& paths = searchPath.GetPaths();
+ if (paths.empty()) {
+ buffer += " none\n";
+ return 0;
+ }
+ for (std::size_t i = startIndex; i < paths.size(); i++) {
+ buffer += " " + paths[i].Path + "\n";
+ }
+ return paths.size();
+}
+
} // anonymous namespace
cmFindPackageCommand::PathLabel
@@ -1445,21 +1460,6 @@ void cmFindPackageCommand::AppendSuccessInformation()
}
}
-inline std::size_t collectPathsForDebug(std::string& buffer,
- cmSearchPath const& searchPath,
- std::size_t startIndex = 0)
-{
- const auto& paths = searchPath.GetPaths();
- if (paths.empty()) {
- buffer += " none\n";
- return 0;
- }
- for (std::size_t i = startIndex; i < paths.size(); i++) {
- buffer += " " + paths[i].Path + "\n";
- }
- return paths.size();
-}
-
void cmFindPackageCommand::ComputePrefixes()
{
this->FillPrefixesPackageRedirect();