diff options
Diffstat (limited to 'cmake')
-rw-r--r-- | cmake/ProcessPackage.cmake | 7 |
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") |