summaryrefslogtreecommitdiffstats
path: root/Modules
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2020-09-28 12:40:55 (GMT)
committerKitware Robot <kwrobot@kitware.com>2020-09-28 12:41:02 (GMT)
commit7fcd5d75f2cd0ee5b28f25db4e36ab7999cbd18c (patch)
tree6a74d6811788ca5b646ad24375ea55d561a5df24 /Modules
parent13e0a0d74e81e6bebfc6484008193465ac2f533b (diff)
parent1e82b1c4bcfd9d792c017700391ff369eaf75c14 (diff)
downloadCMake-7fcd5d75f2cd0ee5b28f25db4e36ab7999cbd18c.zip
CMake-7fcd5d75f2cd0ee5b28f25db4e36ab7999cbd18c.tar.gz
CMake-7fcd5d75f2cd0ee5b28f25db4e36ab7999cbd18c.tar.bz2
Merge topic 'FPHSA-fix-spurious-error'
1e82b1c4bc FPHSA: avoid spurious error if version variable is not defined Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !5277
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 4d252bc..b06433d 100644
--- a/Modules/FindPackageHandleStandardArgs.cmake
+++ b/Modules/FindPackageHandleStandardArgs.cmake
@@ -531,7 +531,7 @@ function(FIND_PACKAGE_HANDLE_STANDARD_ARGS _NAME _FIRST_ARG)
else()
set(FPCV_HANDLE_VERSION_RANGE NO_AUTHOR_WARNING_VERSION_RANGE)
endif()
- find_package_check_version (${_FOUND_VERSION} VERSION_OK RESULT_MESSAGE_VARIABLE VERSION_MSG
+ find_package_check_version ("${_FOUND_VERSION}" VERSION_OK RESULT_MESSAGE_VARIABLE VERSION_MSG
${FPCV_HANDLE_VERSION_RANGE})
else()
# if the package was not found, but a version was given, add that to the output: