|
|
|
|
@ -5,6 +5,10 @@ if(NOT WIN32 AND NOT APPLE AND NOT ${CMAKE_SYSTEM_NAME} STREQUAL FreeBSD)
|
|
|
|
|
add_definitions(-D_POSIX_C_SOURCE=200809L) |
|
|
|
|
endif() |
|
|
|
|
|
|
|
|
|
# Disable fmt/os.h functionality. |
|
|
|
|
# We do not use it and it is not supported on some systems. |
|
|
|
|
set(FMT_OS OFF) |
|
|
|
|
|
|
|
|
|
if(DEVILUTIONX_STATIC_LIBFMT) |
|
|
|
|
set(BUILD_SHARED_LIBS OFF) |
|
|
|
|
else() |
|
|
|
|
@ -19,8 +23,8 @@ if(NXDK)
|
|
|
|
|
) |
|
|
|
|
else() |
|
|
|
|
FetchContent_Declare(libfmt |
|
|
|
|
URL https://github.com/fmtlib/fmt/archive/refs/tags/10.0.0.tar.gz |
|
|
|
|
URL_HASH MD5=fa629bc1178918b7af4b2ea6b6a271dc |
|
|
|
|
URL https://github.com/fmtlib/fmt/archive/refs/tags/10.1.1.tar.gz |
|
|
|
|
URL_HASH MD5=0d41a16f1b3878d44e6fd7ff1f6cc45a |
|
|
|
|
) |
|
|
|
|
endif() |
|
|
|
|
FetchContent_MakeAvailableExcludeFromAll(libfmt) |
|
|
|
|
|