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.
26 lines
865 B
26 lines
865 B
include(functions/FetchContent_MakeAvailableExcludeFromAll) |
|
|
|
if(NOT WIN32 AND NOT APPLE AND NOT ${CMAKE_SYSTEM_NAME} STREQUAL FreeBSD) |
|
# Enable POSIX extensions such as `readlink` and `ftruncate`. |
|
add_definitions(-D_POSIX_C_SOURCE=200809L) |
|
endif() |
|
|
|
if(DEVILUTIONX_STATIC_LIBFMT) |
|
set(BUILD_SHARED_LIBS OFF) |
|
else() |
|
set(BUILD_SHARED_LIBS ON) |
|
endif() |
|
include(FetchContent) |
|
if(NXDK) |
|
# branch: nxdk-2022-07-19 |
|
FetchContent_Declare(libfmt |
|
URL https://github.com/diasurgical/fmt/archive/16d67608437f4fb9d293e561b4ddbccf3815a097.tar.gz |
|
URL_HASH MD5=7ef45573ef301c250717c60458aa7536 |
|
) |
|
else() |
|
FetchContent_Declare(libfmt |
|
URL https://github.com/fmtlib/fmt/archive/22d31b31f0e9b4e4654ba67ee881f3564c2cc297.tar.gz |
|
URL_HASH MD5=d4e8744846cb9e94a80aca932ed2d5c0 |
|
) |
|
endif() |
|
FetchContent_MakeAvailableExcludeFromAll(libfmt)
|
|
|