diff options
author | Marc Chevrier <marc.chevrier@gmail.com> | 2020-09-25 17:35:11 (GMT) |
---|---|---|
committer | Marc Chevrier <marc.chevrier@gmail.com> | 2020-09-25 17:35:11 (GMT) |
commit | 1e82b1c4bcfd9d792c017700391ff369eaf75c14 (patch) | |
tree | c583b62f592289ec6ad11a4e7018983f5fb3397b /Modules/FindPackageHandleStandardArgs.cmake | |
parent | 7a4d84d8d20ea58cd5cb297b9e5decd58a80b709 (diff) | |
download | CMake-1e82b1c4bcfd9d792c017700391ff369eaf75c14.zip CMake-1e82b1c4bcfd9d792c017700391ff369eaf75c14.tar.gz CMake-1e82b1c4bcfd9d792c017700391ff369eaf75c14.tar.bz2 |
FPHSA: avoid spurious error if version variable is not defined
Fixes: #21241
Diffstat (limited to 'Modules/FindPackageHandleStandardArgs.cmake')
-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 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: |