Browse Source

Also store the required version number in the details message.

This way the success/failure message of FPHSA() is also printed again
if the required version is changed.

Alex
Alex Neundorf 15 years ago
parent
commit
567ac0bb1f
1 changed files with 1 additions and 1 deletions
  1. 1 1
      Modules/FindPackageHandleStandardArgs.cmake

+ 1 - 1
Modules/FindPackageHandleStandardArgs.cmake

@@ -232,7 +232,7 @@ FUNCTION(FIND_PACKAGE_HANDLE_STANDARD_ARGS _NAME _FIRST_ARG)
   ENDIF (${_NAME}_FIND_VERSION)
 
   IF(VERSION_OK)
-    SET(DETAILS "${DETAILS}[v${VERSION}]")
+    SET(DETAILS "${DETAILS}[v${VERSION}(${${_NAME}_FIND_VERSION})]")
   ELSE(VERSION_OK)
     SET(${_NAME_UPPER}_FOUND FALSE)
   ENDIF(VERSION_OK)