Skip to content

Commit 1822b08

Browse files
committed
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.
1 parent b106834 commit 1822b08

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

deps/ntlmclient/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ ELSEIF(USE_HTTPS STREQUAL "OpenSSL")
1616
SET(SRC_NTLMCLIENT_CRYPTO "crypt_openssl.c")
1717
ELSEIF(USE_HTTPS STREQUAL "mbedTLS")
1818
ADD_DEFINITIONS(-DCRYPT_MBEDTLS)
19+
INCLUDE_DIRECTORIES(${MBEDTLS_INCLUDE_DIR})
1920
SET(SRC_NTLMCLIENT_CRYPTO "crypt_mbedtls.c")
2021
ELSE()
2122
MESSAGE(FATAL_ERROR "Unable to use libgit2's HTTPS backend (${USE_HTTPS}) for NTLM crypto")

0 commit comments

Comments
 (0)