transmission/cmake/FindFmt.cmake

11 lines
281 B
CMake
Raw Normal View History

add_library(fmt::fmt-header-only INTERFACE IMPORTED)
target_include_directories(fmt::fmt-header-only
INTERFACE
${TR_THIRD_PARTY_SOURCE_DIR}/fmt/include)
target_compile_definitions(fmt::fmt-header-only
INTERFACE
FMT_EXCEPTIONS=0
FMT_HEADER_ONLY=1)