CMake: Be more explicit about found OpenSSL variables
Specifying the variables as required variable will show the found paths in the configure output. Pick-to: 6.2 Task-number: QTBUG-94355 Change-Id: I985a3585f37b38e25b6be4fae5d42c82e06517de Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org> Reviewed-by: Alexey Edelev <alexey.edelev@qt.io> Reviewed-by: Joerg Bornemann <joerg.bornemann@qt.io>
This commit is contained in:
parent
6e6202bf5e
commit
6d59e1e088
@ -30,4 +30,10 @@ if(OpenSSL_FOUND)
|
||||
endif()
|
||||
|
||||
include(FindPackageHandleStandardArgs)
|
||||
find_package_handle_standard_args(WrapOpenSSL DEFAULT_MSG WrapOpenSSL_FOUND)
|
||||
find_package_handle_standard_args(WrapOpenSSL
|
||||
REQUIRED_VARS
|
||||
OPENSSL_CRYPTO_LIBRARY
|
||||
OPENSSL_INCLUDE_DIR
|
||||
VERSION_VAR
|
||||
OPENSSL_VERSION
|
||||
)
|
||||
|
@ -31,4 +31,9 @@ if(OPENSSL_INCLUDE_DIR)
|
||||
endif()
|
||||
|
||||
include(FindPackageHandleStandardArgs)
|
||||
find_package_handle_standard_args(WrapOpenSSLHeaders DEFAULT_MSG WrapOpenSSLHeaders_FOUND)
|
||||
find_package_handle_standard_args(WrapOpenSSLHeaders
|
||||
REQUIRED_VARS
|
||||
OPENSSL_INCLUDE_DIR
|
||||
VERSION_VAR
|
||||
OPENSSL_VERSION
|
||||
)
|
||||
|
Loading…
Reference in New Issue
Block a user