blankart/thirdparty/fmt/CMakeLists.txt
James R d8dcb81b99 CMakeLists.txt: use libfmt from thirdparty/fmt
Now compiles on Ubuntu 22.04, which only has libfmt 8.
I don't know which exact version of libfmt we need but the
one in thirdparty works.

This version of libfmt is header-only.
2024-12-29 09:25:34 -05:00

9 lines
361 B
CMake

# Update from https://github.com/fmtlib/fmt
# fmt 10.1.1
# License: MIT with object code exception
add_library(fmt INTERFACE)
target_include_directories(fmt INTERFACE "${CMAKE_CURRENT_SOURCE_DIR}/include")
target_compile_features(fmt INTERFACE cxx_std_11)
target_compile_definitions(fmt INTERFACE -DFMT_HEADER_ONLY)
add_library(fmt::fmt-header-only ALIAS fmt)