vcpkg/ports/caf/openssl-version-override.patch
Cheney Wang c094d3133c Update release version or commit to latest for below ports (#4957)
* [botan][caf][celero][docopt][glbinding][nanodbc][sfgui]Update release version or commit to latest

* [sfml] Add find_dependency(Freetype)
2018-12-17 16:44:08 -08:00

15 lines
556 B
Diff

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