build: moving find_package for openssl to net/CMakeLists.txt
This commit is contained in:
parent
899a49d09a
commit
9c81f1c045
2 changed files with 9 additions and 11 deletions
|
|
@ -37,17 +37,6 @@ macro(configure_libs)
|
||||||
|
|
||||||
message(STATUS "Qt version: ${Qt6_VERSION}")
|
message(STATUS "Qt version: ${Qt6_VERSION}")
|
||||||
|
|
||||||
# TODO SSL check can happen in lib/net when don't have to deploy it any longer on windows
|
|
||||||
|
|
||||||
# Apple has to use static libraries because "Use of the Apple-provided OpenSSL
|
|
||||||
# libraries by apps is strongly discouraged."
|
|
||||||
# https://developer.apple.com/library/archive/documentation/Security/Conceptual/cryptoservices/SecureNetworkCommunicationAPIs/SecureNetworkCommunicationAPIs.html
|
|
||||||
if(APPLE)
|
|
||||||
set(OPENSSL_USE_STATIC_LIBS TRUE)
|
|
||||||
endif()
|
|
||||||
|
|
||||||
find_package(OpenSSL ${REQUIRED_OPENSSL_VERSION} REQUIRED COMPONENTS SSL Crypto)
|
|
||||||
|
|
||||||
option(ENABLE_COVERAGE "Enable test coverage" OFF)
|
option(ENABLE_COVERAGE "Enable test coverage" OFF)
|
||||||
if(ENABLE_COVERAGE)
|
if(ENABLE_COVERAGE)
|
||||||
message(STATUS "Enabling code coverage")
|
message(STATUS "Enabling code coverage")
|
||||||
|
|
|
||||||
|
|
@ -3,6 +3,15 @@
|
||||||
# SPDX-FileCopyrightText: 2009 - 2012 Nick Bolton
|
# SPDX-FileCopyrightText: 2009 - 2012 Nick Bolton
|
||||||
# SPDX-License-Identifier: MIT
|
# SPDX-License-Identifier: MIT
|
||||||
|
|
||||||
|
# Apple has to use static libraries because "Use of the Apple-provided OpenSSL
|
||||||
|
# libraries by apps is strongly discouraged."
|
||||||
|
# https://developer.apple.com/library/archive/documentation/Security/Conceptual/cryptoservices/SecureNetworkCommunicationAPIs/SecureNetworkCommunicationAPIs.html
|
||||||
|
if(APPLE)
|
||||||
|
set(OPENSSL_USE_STATIC_LIBS TRUE)
|
||||||
|
endif()
|
||||||
|
|
||||||
|
find_package(OpenSSL ${REQUIRED_OPENSSL_VERSION} REQUIRED COMPONENTS SSL Crypto)
|
||||||
|
|
||||||
add_library(net STATIC
|
add_library(net STATIC
|
||||||
FingerprintData.cpp
|
FingerprintData.cpp
|
||||||
FingerprintData.h
|
FingerprintData.h
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue