mirror of
https://github.com/obsproject/obs-studio.git
synced 2024-09-19 20:32:15 +02:00
Add CheckSymbolExists module for FindMbedTLS.cmake
FindMbedTLS.cmake uses `check_symbol_exists` macro which requires `include(CheckSymbolExists)` before invocation (see https://cmake.org/cmake/help/latest/module/CheckSymbolExists.html). Signed-off-by: Azamat H. Hackimov <azamat.hackimov@gmail.com>
This commit is contained in:
parent
ac484a066f
commit
d9b3969bc5
@ -94,6 +94,7 @@ if(MBEDTLS_LIB
|
||||
AND NOT MBEDX509_LIB)
|
||||
set(CMAKE_REQUIRED_LIBRARIES ${MBEDTLS_LIB})
|
||||
set(CMAKE_REQUIRED_INCLUDES ${MBEDTLS_INCLUDE_DIR})
|
||||
include(CheckSymbolExists)
|
||||
check_symbol_exists(mbedtls_x509_crt_init "mbedtls/x509_crt.h" MBEDTLS_INCLUDES_X509)
|
||||
check_symbol_exists(mbedtls_sha256_init "mbedtls/sha256.h" MBEDTLS_INCLUDES_CRYPTO)
|
||||
unset(CMAKE_REQUIRED_INCLUDES)
|
||||
|
Loading…
Reference in New Issue
Block a user