Require OpenSSL 1.1.0 in all other parts of the build

This commit is contained in:
Dale Glass 2021-11-04 18:54:35 +01:00
parent 2eabd40215
commit 732b32b68e
2 changed files with 3 additions and 3 deletions

View file

@ -12,7 +12,7 @@ macro(TARGET_OPENSSL)
set(OPENSSL_LIBRARIES "${OPENSSL_INSTALL_DIR}/lib/libcrypto.a;${OPENSSL_INSTALL_DIR}/lib/libssl.a" CACHE STRING INTERNAL)
else()
# using VCPKG for OpenSSL
find_package(OpenSSL REQUIRED)
find_package(OpenSSL 1.1.0 REQUIRED)
endif()
include_directories(SYSTEM "${OPENSSL_INCLUDE_DIR}")

View file

@ -69,7 +69,7 @@ if (WIN32)
set(OPENSSL_ROOT_DIR ${SSL_DIR})
message("SSL dir is ${SSL_DIR}")
set(OPENSSL_USE_STATIC_LIBS TRUE)
find_package(OpenSSL REQUIRED)
find_package(OpenSSL 1.1.0 REQUIRED)
message("-- Found OpenSSL Libs ${OPENSSL_LIBRARIES}")
@ -105,7 +105,7 @@ endif()
if (APPLE)
set(OPENSSL_USE_STATIC_LIBS TRUE)
find_package(OpenSSL REQUIRED)
find_package(OpenSSL 1.1.0 REQUIRED)
endif()
find_package(Qt5 COMPONENTS Core Gui Qml Quick QuickControls2 Network REQUIRED)