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