Commit 52294c413100ed4930764addc69beadd82382a4c

Edward Thomson 2020-10-21T10:10:52

Merge pull request #5685 from staticfloat/sf/mbedtls_inc_fix Include `${MBEDTLS_INCLUDE_DIR}` when compiling `crypt_mbedtls.c`

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 5fbf0d0..d933f49 100644
--- a/deps/ntlmclient/CMakeLists.txt
+++ b/deps/ntlmclient/CMakeLists.txt
@@ -16,6 +16,7 @@ ELSEIF(USE_HTTPS STREQUAL "OpenSSL")
 	SET(SRC_NTLMCLIENT_CRYPTO "crypt_openssl.c")
 ELSEIF(USE_HTTPS STREQUAL "mbedTLS")
 	ADD_DEFINITIONS(-DCRYPT_MBEDTLS)
+	INCLUDE_DIRECTORIES(${MBEDTLS_INCLUDE_DIR})
 	SET(SRC_NTLMCLIENT_CRYPTO "crypt_mbedtls.c")
 ELSE()
 	MESSAGE(FATAL_ERROR "Unable to use libgit2's HTTPS backend (${USE_HTTPS}) for NTLM crypto")