Skip to content

Commit

Permalink
[ssl] Define mbedtls config file when compiling ssl.c
Browse files Browse the repository at this point in the history
  • Loading branch information
tobil4sk committed Jul 3, 2024
1 parent 69c13f5 commit 9010629
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions libs/ssl/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,11 @@ target_include_directories(ssl.ndll
${MBEDTLS_INCLUDE_DIR}
)

target_compile_definitions(ssl.ndll
PRIVATE
-DMBEDTLS_USER_CONFIG_FILE="${CMAKE_CURRENT_SOURCE_DIR}/mbedtls_config.h"
)

if(APPLE)
find_library(SECURITY_LIBRARY Security REQUIRED)
find_library(COREFOUNDATION_LIBRARY CoreFoundation REQUIRED)
Expand Down

0 comments on commit 9010629

Please sign in to comment.