From 6a95ab97e77faca8ba7775683f307cd32c82f47f Mon Sep 17 00:00:00 2001 From: Alex Turbov Date: Mon, 27 Jun 2022 08:17:46 +0400 Subject: cmFindPackageCommand: Deduplicate version string comparator code --- Source/cmFindPackageCommand.cxx | 33 +++++++++++++++------------------ 1 file changed, 15 insertions(+), 18 deletions(-) diff --git a/Source/cmFindPackageCommand.cxx b/Source/cmFindPackageCommand.cxx index 0347d58..75aaba1 100644 --- a/Source/cmFindPackageCommand.cxx +++ b/Source/cmFindPackageCommand.cxx @@ -45,6 +45,19 @@ class cmExecutionStatus; class cmFileList; +namespace { + +template