1
0
mirror of https://github.com/xmrig/xmrig.git synced 2025-12-14 10:32:38 -05:00
This commit is contained in:
Jean-Pierre De Jesus DIAZ
2023-07-05 21:05:00 -05:00
committed by GitHub
46 changed files with 32 additions and 15 deletions

13
cmake/fmt.cmake Normal file
View File

@@ -0,0 +1,13 @@
# 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()