Commit 7475dfa0978dbb6a0ca6949c13c34f8f035f3061

Edward Thomson 2019-09-12T11:29:30

Merge pull request #5216 from stinb/ntlm-openssl-headers ntlm: fix failure to find openssl headers

1
2
3
4
5
6
7
8
9
10
11
12
diff --git a/deps/ntlmclient/CMakeLists.txt b/deps/ntlmclient/CMakeLists.txt
index c7d472d..66e96d6 100644
--- a/deps/ntlmclient/CMakeLists.txt
+++ b/deps/ntlmclient/CMakeLists.txt
@@ -9,6 +9,7 @@ IF (HTTPS_BACKEND STREQUAL "SecureTransport")
 	SET(SRC_NTLMCLIENT_CRYPTO "crypt_commoncrypto.c")
 ELSEIF (HTTPS_BACKEND STREQUAL "OpenSSL")
 	ADD_DEFINITIONS(-DCRYPT_OPENSSL)
+	INCLUDE_DIRECTORIES(${OPENSSL_INCLUDE_DIR})
 	SET(SRC_NTLMCLIENT_CRYPTO "crypt_openssl.c")
 ELSEIF (HTTPS_BACKEND STREQUAL "mbedTLS")
 	ADD_DEFINITIONS(-DCRYPT_MBEDTLS)