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) FetchContent_Declare(libfmt URL https://github.com/fmtlib/fmt/archive/22d31b31f0e9b4e4654ba67ee881f3564c2cc297.tar.gz URL_HASH MD5=d4e8744846cb9e94a80aca932ed2d5c0 ) FetchContent_MakeAvailableExcludeFromAll(libfmt)