diff options
author | Yves Frederix <yves.frederix@dentsplysirona.com> | 2017-09-13 19:10:46 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2017-09-14 12:21:38 (GMT) |
commit | a8f70b32fbe11dab75580f1310c47a42dae59779 (patch) | |
tree | d7b1fb12f2fa5e7bd0e15da659b8a3037ecf74fe | |
parent | 549366cbfc425cdeb3b84e78ea2f0ca3010c8a2a (diff) | |
download | CMake-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
-rw-r--r-- | Modules/FindPackageHandleStandardArgs.cmake | 2 |
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 () |