You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
19 lines
582 B
19 lines
582 B
if(NOT DEVILUTIONX_SYSTEM_LIBSODIUM) |
|
include(functions/FetchContent_MakeAvailableExcludeFromAll) |
|
|
|
set(SODIUM_MINIMAL ON) |
|
set(SODIUM_ENABLE_BLOCKING_RANDOM OFF) |
|
set(SODIUM_DISABLE_TESTS ON) |
|
|
|
if(DEVILUTIONX_STATIC_LIBSODIUM) |
|
set(BUILD_SHARED_LIBS OFF) |
|
else() |
|
set(BUILD_SHARED_LIBS ON) |
|
endif() |
|
include(FetchContent) |
|
FetchContent_Declare(libsodium |
|
GIT_REPOSITORY https://github.com/robinlinden/libsodium-cmake.git |
|
GIT_TAG a8ac4509b22b84d6c2eb7d7448f08678e4a67da6 |
|
) |
|
FetchContent_MakeAvailableExcludeFromAll(libsodium) |
|
endif()
|
|
|