Skip to content

Commit

Permalink
Disable mbedtls platform entropy
Browse files Browse the repository at this point in the history
  • Loading branch information
romainthomas committed Sep 19, 2024
1 parent 2b5a5eb commit 201a87e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -129,13 +129,15 @@ endif()
if(NOT LIEF_OPT_MBEDTLS_EXTERNAL)
set_source_files_properties(${mbedtls_src_files} PROPERTIES GENERATED TRUE)
target_sources(LIB_LIEF PRIVATE ${mbedtls_src_files})
target_compile_definitions(LIB_LIEF PRIVATE -DMBEDTLS_NO_PLATFORM_ENTROPY)

target_include_directories(LIB_LIEF SYSTEM PRIVATE
${MBEDTLS_INCLUDE_DIRS}
"${MBEDTLS_SOURCE_DIR}/library"
)

add_dependencies(LIB_LIEF lief_mbed_tls)
target_compile_definitions(LIB_LIEF PUBLIC -DLIEF_EXPORTS)
else()
find_package(MbedTLS REQUIRED)
target_link_libraries(LIB_LIEF PRIVATE
Expand Down

0 comments on commit 201a87e

Please sign in to comment.