From eb036c64a2a999de0eebb6f0b285dcd67e3366b1 Mon Sep 17 00:00:00 2001
From: Andrea Brancaleoni <miwaxe@gmail.com>
Date: Fri, 21 Aug 2015 11:30:36 +0200
Subject: [PATCH 7/7] FindProcps.cmake: find package with pkg-config

---
 cmake/Modules/FindProcps.cmake | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/cmake/Modules/FindProcps.cmake b/cmake/Modules/FindProcps.cmake
index 93747fd..f1c3a43 100644
--- a/cmake/Modules/FindProcps.cmake
+++ b/cmake/Modules/FindProcps.cmake
@@ -627,8 +627,7 @@ if(found_lib)
   unset(PROCPS_${libtype}_VERSION_STRING CACHE) # check eachtime
 
   execute_process(
-              COMMAND "strings" "${PROCPS_${libtype}_LIBRARY}"
-              COMMAND "sed" "-n" "${ver_rexp}"
+              COMMAND "pkg-config" "--modversion" "libprocps"
               OUTPUT_VARIABLE PROCPS_${libtype}_VERSION_STRING
               ERROR_QUIET )
 
-- 
2.5.0

