fixup! Allow using system libfmt
This commit is contained in:
parent
0399b6b6bb
commit
f0f6d1666c
2 changed files with 5 additions and 5 deletions
|
@ -1,14 +1,13 @@
|
|||
# SPDX-FileCopyrightText: © 2023 Jean-Pierre De Jesus DIAZ <me@jeandudey.tech>
|
||||
# SPDX-License-Identifier: GPL-3.0-or-later
|
||||
|
||||
find_package(fmt QUIET)
|
||||
|
||||
if(fmt_FOUND)
|
||||
set(FMT_LIBRARY fmt::fmt)
|
||||
else()
|
||||
message(STATUS "Using bundled fmt library")
|
||||
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()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue