diff options
author | Brad King <brad.king@kitware.com> | 2021-12-06 15:50:25 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2021-12-06 15:50:25 (GMT) |
commit | 586d483983a963ad2a73511080f591bc4aea8578 (patch) | |
tree | ec523c01915f9a9e947d523d81121f0af48dd6f7 /Modules | |
parent | 14f8990a607b08effe81b14ed8a02d8cbbea5833 (diff) | |
download | CMake-586d483983a963ad2a73511080f591bc4aea8578.zip CMake-586d483983a963ad2a73511080f591bc4aea8578.tar.gz CMake-586d483983a963ad2a73511080f591bc4aea8578.tar.bz2 |
FindOpenSSL: Fix typo in applink condition
In commit 7b83ca816a (FindOpenSSL: add target OpenSSL::applink to
support OpenSSL's applink feature, 2020-05-12, v3.18.0-rc1~150^2) the
version check was written as "major.major.fix" instead of
"major.minor.fix".
Diffstat (limited to 'Modules')
-rw-r--r-- | Modules/FindOpenSSL.cmake | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/FindOpenSSL.cmake b/Modules/FindOpenSSL.cmake index 8474e05..3d63519 100644 --- a/Modules/FindOpenSSL.cmake +++ b/Modules/FindOpenSSL.cmake @@ -650,7 +650,7 @@ if(OPENSSL_FOUND) _OpenSSL_target_add_dependencies(OpenSSL::SSL) endif() - if("${OPENSSL_VERSION_MAJOR}.${OPENSSL_VERSION_MAJOR}.${OPENSSL_VERSION_FIX}" VERSION_GREATER_EQUAL "0.9.8") + if("${OPENSSL_VERSION_MAJOR}.${OPENSSL_VERSION_MINOR}.${OPENSSL_VERSION_FIX}" VERSION_GREATER_EQUAL "0.9.8") if(MSVC) if(EXISTS "${OPENSSL_INCLUDE_DIR}") set(_OPENSSL_applink_paths PATHS ${OPENSSL_INCLUDE_DIR}) |