|
|
|
@ -48,13 +48,13 @@ add_library(${CRYPTOGRAPHY_LIB} STATIC ${CRYPTOGRAPHY_SRC})
|
|
|
|
|
add_log_tag(${CRYPTOGRAPHY_LIB})
|
|
|
|
|
|
|
|
|
|
if(NOT VENDOR_LIBSODIUM)
|
|
|
|
|
find_package(Sodium >=1.0.17 REQUIRED)
|
|
|
|
|
find_package(Sodium 1.0.17 REQUIRED)
|
|
|
|
|
endif()
|
|
|
|
|
|
|
|
|
|
if(NOT sodium_FOUND)
|
|
|
|
|
message("Could not find libsodium >= 1.0.17 so we'll grab it from the web")
|
|
|
|
|
include(DownloadLibSodium)
|
|
|
|
|
target_link_libraries(${CRYPTOGRAPHY_LIB} sodium_vendor)
|
|
|
|
|
message("Could not find libsodium >= 1.0.17")
|
|
|
|
|
#include(DownloadLibSodium)
|
|
|
|
|
#target_link_libraries(${CRYPTOGRAPHY_LIB} sodium_vendor)
|
|
|
|
|
else()
|
|
|
|
|
target_include_directories(${CRYPTOGRAPHY_LIB} PUBLIC ${sodium_INCLUDE_DIR})
|
|
|
|
|
target_link_libraries(${CRYPTOGRAPHY_LIB} sodium)
|
|
|
|
|