summaryrefslogtreecommitdiff
path: root/deps
diff options
context:
space:
mode:
authorElliot Saba <staticfloat@gmail.com>2020-10-20 23:26:47 +0000
committerElliot Saba <staticfloat@gmail.com>2020-10-20 23:30:50 +0000
commit1822b0827a652d5c970a3a906e1801fb8251135b (patch)
treed5fd9fb6451891fcb7823d47ff1ac0cd4a526876 /deps
parentb106834d70ae94d054c0127b35572010723fee4f (diff)
downloadlibgit2-1822b0827a652d5c970a3a906e1801fb8251135b.tar.gz
Include `${MBEDTLS_INCLUDE_DIR}` when compiling `crypt_mbedtls.c`
Without this, mbedTLS installs in non-default install locations that are otherwise found by the `FindmbedTLS.cmake` module are not found by the C preprocessor at compile time.
Diffstat (limited to 'deps')
-rw-r--r--deps/ntlmclient/CMakeLists.txt1
1 files changed, 1 insertions, 0 deletions
diff --git a/deps/ntlmclient/CMakeLists.txt b/deps/ntlmclient/CMakeLists.txt
index 5fbf0d0f4..d933f4919 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")