From: Vsevolod Stakhov Date: Thu, 8 Aug 2024 08:52:29 +0000 (+0100) Subject: [Minor] CMake: show version of packages found if available X-Git-Tag: 3.10.0~46 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=df11e571d6eee29a4c3f7cf19485c9b5ab668985;p=rspamd.git [Minor] CMake: show version of packages found if available --- diff --git a/cmake/ProcessPackage.cmake b/cmake/ProcessPackage.cmake index a46fd85b4..316662568 100644 --- a/cmake/ProcessPackage.cmake +++ b/cmake/ProcessPackage.cmake @@ -32,7 +32,12 @@ MACRO(ProcessPackage PKG_NAME) ENDIF() IF(${PKG_NAME}_FOUND) - MESSAGE(STATUS "Found package ${PKG_NAME} in pkg-config modules ${PKG_MODULES}") + SET(_ver ${${PKG_NAME}_VERSION}) + IF(_ver) + MESSAGE(STATUS "Found package ${PKG_NAME} (${_ver}) in pkg-config modules ${PKG_MODULES}") + ELSE() + MESSAGE(STATUS "Found package ${PKG_NAME} in pkg-config modules ${PKG_MODULES}") + ENDIF() SET(WITH_${PKG_NAME} 1 CACHE INTERNAL "") IF(ENABLE_STATIC MATCHES "ON") SET(_XPREFIX "${PKG_NAME}_STATIC")