summaryrefslogtreecommitdiffstats
path: root/Modules
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2021-12-06 15:50:25 (GMT)
committerBrad King <brad.king@kitware.com>2021-12-06 15:50:25 (GMT)
commit586d483983a963ad2a73511080f591bc4aea8578 (patch)
treeec523c01915f9a9e947d523d81121f0af48dd6f7 /Modules
parent14f8990a607b08effe81b14ed8a02d8cbbea5833 (diff)
downloadCMake-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.cmake2
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})