From 77d909b559be4c09a037a7a7eabef6fd76d77917 Mon Sep 17 00:00:00 2001 From: Alex Neundorf Date: Sat, 7 Aug 2010 22:30:06 +0200 Subject: [PATCH] Fix DETAILS string with version number in FHPSA() If found, the version which was found should be stored in the DETAILS string, but it was dereferenced twice, which was wrong. Alex --- Modules/FindPackageHandleStandardArgs.cmake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Modules/FindPackageHandleStandardArgs.cmake b/Modules/FindPackageHandleStandardArgs.cmake index 389697e12..8502c045f 100644 --- a/Modules/FindPackageHandleStandardArgs.cmake +++ b/Modules/FindPackageHandleStandardArgs.cmake @@ -214,7 +214,7 @@ FUNCTION(FIND_PACKAGE_HANDLE_STANDARD_ARGS _NAME _FIRST_ARG _VAR1) ENDIF (${_NAME}_FIND_VERSION) IF(VERSION_OK) - SET(DETAILS "${DETAILS}[v${${VERSION}}]") + SET(DETAILS "${DETAILS}[v${VERSION}]") ELSE(VERSION_OK) SET(${_NAME_UPPER}_FOUND FALSE) ENDIF(VERSION_OK)