aboutsummaryrefslogtreecommitdiff
path: root/dep/openssl/CMakeLists.txt
diff options
context:
space:
mode:
Diffstat (limited to 'dep/openssl/CMakeLists.txt')
-rw-r--r--dep/openssl/CMakeLists.txt9
1 files changed, 3 insertions, 6 deletions
diff --git a/dep/openssl/CMakeLists.txt b/dep/openssl/CMakeLists.txt
index a08fb15a019..c76fa03dd3f 100644
--- a/dep/openssl/CMakeLists.txt
+++ b/dep/openssl/CMakeLists.txt
@@ -13,14 +13,11 @@
# (further support will be needed, this is a preliminary release!)
set(OPENSSL_EXPECTED_VERSION 1.0.0)
-find_package(OpenSSL REQUIRED)
+find_package(OpenSSL REQUIRED COMPONENTS Crypto SSL)
add_library(openssl INTERFACE)
target_link_libraries(openssl
INTERFACE
- ${OPENSSL_LIBRARIES})
-
-target_include_directories(openssl
- INTERFACE
- ${OPENSSL_INCLUDE_DIR})
+ OpenSSL::Crypto
+ OpenSSL::SSL)