2018-03-21 16:22:29 +08:00
|
|
|
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
2018-12-18 08:44:08 +08:00
|
|
|
index 2d908e8..d270297 100644
|
2018-03-21 16:22:29 +08:00
|
|
|
--- a/CMakeLists.txt
|
|
|
|
+++ b/CMakeLists.txt
|
2018-12-18 08:44:08 +08:00
|
|
|
@@ -495,6 +495,9 @@ if(NOT CAF_NO_OPENSSL)
|
2018-03-21 16:22:29 +08:00
|
|
|
message(STATUS
|
|
|
|
"Disable OpenSSL. Required >= 1.0.1 due to TLSv1.2 support.")
|
|
|
|
set(CAF_NO_OPENSSL yes)
|
|
|
|
+ elseif(CAF_OPENSSL_VERSION_OVERRIDE)
|
2018-12-18 08:44:08 +08:00
|
|
|
+ include_directories(BEFORE ${OPENSSL_INCLUDE_DIR})
|
|
|
|
+ add_optional_caf_lib(openssl)
|
2018-03-21 16:22:29 +08:00
|
|
|
else()
|
2018-12-18 08:44:08 +08:00
|
|
|
if(NOT CMAKE_CROSSCOMPILING)
|
|
|
|
# Check if openssl headers and library versions match
|