summaryrefslogtreecommitdiffstats
path: root/Modules
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2017-09-15 12:41:58 (GMT)
committerKitware Robot <kwrobot@kitware.com>2017-09-15 12:42:16 (GMT)
commitead879df2067ccada6cc86ed6248bff850f0f6ec (patch)
treec753ebd8318baa19810fcd4a2e087ec31b7f11af /Modules
parent6b76615c4e55dc93fbe6880151a4a24ae700987b (diff)
parent5dc215e03b6a7a421cd024daa8e8747d46b9e60d (diff)
downloadCMake-ead879df2067ccada6cc86ed6248bff850f0f6ec.zip
CMake-ead879df2067ccada6cc86ed6248bff850f0f6ec.tar.gz
CMake-ead879df2067ccada6cc86ed6248bff850f0f6ec.tar.bz2
Merge topic 'fphsa-fix-version-exact'
5dc215e0 FPHSA: fix typo in comment a8f70b32 FPHSA: replace left-over VERSION by _FOUND_VERSION. 549366cb FPHSA: Add (failing) unit test when checking EXACT on full version number Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !1259
Diffstat (limited to 'Modules')
-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 ()