vcpkg/ports/caf/openssl-version-override.patch

15 lines
556 B
Diff
Raw Normal View History

2018-03-21 01:22:29 -07:00
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 2d908e8..d270297 100644
2018-03-21 01:22:29 -07:00
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -495,6 +495,9 @@ if(NOT CAF_NO_OPENSSL)
2018-03-21 01:22:29 -07:00
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)
2018-03-21 01:22:29 -07:00
else()
if(NOT CMAKE_CROSSCOMPILING)
# Check if openssl headers and library versions match