1
0
mirror of https://github.com/xmrig/xmrig.git synced 2025-12-06 23:52:38 -05:00
Files
xmrig/cmake/fmt.cmake
Jean-Pierre De Jesus DIAZ f0f6d1666c fixup! Allow using system libfmt
2023-05-29 20:15:44 +02:00

14 lines
459 B
CMake

# SPDX-FileCopyrightText: © 2023 Jean-Pierre De Jesus DIAZ <me@jeandudey.tech>
# SPDX-License-Identifier: GPL-3.0-or-later
if(WITH_BUNDLED_FMT)
add_library(fmt INTERFACE)
target_sources(fmt INTERFACE ${CMAKE_CURRENT_SOURCE_DIR}/src/3rdparty/fmt/format.cc)
target_include_directories(fmt INTERFACE ${CMAKE_CURRENT_SOURCE_DIR}/src/3rdparty/fmt)
else()
set(FMT_LIBRARY fmt)
find_package(fmt REQUIRED)
set(FMT_LIBRARY fmt::fmt)
endif()