summaryrefslogtreecommitdiffstats
path: root/Modules/FindPackageHandleStandardArgs.cmake
diff options
context:
space:
mode:
authorYves Frederix <yves.frederix@dentsplysirona.com>2017-09-13 19:10:46 (GMT)
committerBrad King <brad.king@kitware.com>2017-09-14 12:21:38 (GMT)
commita8f70b32fbe11dab75580f1310c47a42dae59779 (patch)
treed7b1fb12f2fa5e7bd0e15da659b8a3037ecf74fe /Modules/FindPackageHandleStandardArgs.cmake
parent549366cbfc425cdeb3b84e78ea2f0ca3010c8a2a (diff)
downloadCMake-a8f70b32fbe11dab75580f1310c47a42dae59779.zip
CMake-a8f70b32fbe11dab75580f1310c47a42dae59779.tar.gz
CMake-a8f70b32fbe11dab75580f1310c47a42dae59779.tar.bz2
FPHSA: replace left-over VERSION by _FOUND_VERSION.
This was accidentally left out of commit aec27c152e (FPHSA: use more localized _FOUND_VERSION instead of VERSION, 2017-09-05). Fixes: #17281
Diffstat (limited to 'Modules/FindPackageHandleStandardArgs.cmake')
-rw-r--r--Modules/FindPackageHandleStandardArgs.cmake2
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/FindPackageHandleStandardArgs.cmake b/Modules/FindPackageHandleStandardArgs.cmake
index 7b08bea..67f6bd6 100644
--- a/Modules/FindPackageHandleStandardArgs.cmake
+++ b/Modules/FindPackageHandleStandardArgs.cmake
@@ -322,7 +322,7 @@ function(FIND_PACKAGE_HANDLE_STANDARD_ARGS _NAME _FIRST_ARG)
endif ()
unset(_VERSION_HEAD)
else ()
- if (NOT ${_NAME}_FIND_VERSION VERSION_EQUAL VERSION)
+ if (NOT ${_NAME}_FIND_VERSION VERSION_EQUAL _FOUND_VERSION)
set(VERSION_MSG "Found unsuitable version \"${_FOUND_VERSION}\", but required is exact version \"${${_NAME}_FIND_VERSION}\"")
set(VERSION_OK FALSE)
else ()