find step 5 iface 1

This commit is contained in:
Viktor Szakats 2025-04-05 03:21:33 +02:00
parent c193266e59
commit 5ed54728d3
No known key found for this signature in database
GPG key ID: B5ABD165E2AEF201
19 changed files with 327 additions and 6 deletions

View file

@ -78,3 +78,20 @@ else()
mark_as_advanced(LIBSSH2_INCLUDE_DIR LIBSSH2_LIBRARY)
endif()
if(BEARSSL_FOUND)
if(CMAKE_VERSION VERSION_LESS 3.13)
link_directories(${_bearssl_LIBRARY_DIRS})
endif()
if(NOT TARGET CURL::bearssl)
add_library(CURL::bearssl INTERFACE IMPORTED)
set_target_properties(CURL::bearssl PROPERTIES
VERSION "${BEARSSL_VERSION}"
CURL_PC_MODULES "${_bearssl_pc_requires}"
INTERFACE_COMPILE_OPTIONS "${_bearssl_CFLAGS}"
INTERFACE_INCLUDE_DIRECTORIES "${_bearssl_INCLUDE_DIRS}"
INTERFACE_LINK_DIRECTORIES "${_bearssl_LIBRARY_DIRS}"
INTERFACE_LINK_LIBRARIES "${_bearssl_LIBRARIES}")
endif()
endif()