aboutsummaryrefslogtreecommitdiffstats
path: root/cmake
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@rspamd.com>2024-08-08 09:52:29 +0100
committerVsevolod Stakhov <vsevolod@rspamd.com>2024-08-08 09:52:29 +0100
commitdf11e571d6eee29a4c3f7cf19485c9b5ab668985 (patch)
treea1a03fa3b95d0109956c7fdafacafca44c8fd310 /cmake
parent6ba735f30722a324bc206418e344ff145c3387a4 (diff)
downloadrspamd-df11e571d6eee29a4c3f7cf19485c9b5ab668985.tar.gz
rspamd-df11e571d6eee29a4c3f7cf19485c9b5ab668985.zip
[Minor] CMake: show version of packages found if available
Diffstat (limited to 'cmake')
-rw-r--r--cmake/ProcessPackage.cmake7
1 files changed, 6 insertions, 1 deletions
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")