summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGuilherme Janczak <guilherme.janczak@yandex.com>2024-05-06 19:25:23 +0000
committerGuilherme Janczak <guilherme.janczak@yandex.com>2024-05-06 19:33:37 +0000
commitd619307a6d138270622aa756a2f006d03c53b301 (patch)
tree059194f6367279e3dfa9291b777eef4dbc6a0b8f
parent2c913674295e08bca0e2cb1726b778fb61bf6bd1 (diff)
use pkg-config to find libfmt
This allows using the system libfmt on OpenBSD and NetBSD. Unfortunately, the system libfmt is too old on OpenBSD at the moment, and Dolphin doesn't currently compile on NetBSD for other reasons.
-rw-r--r--CMakeLists.txt4
1 files changed, 3 insertions, 1 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 9f8e845d0f..89c0bda6e1 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -628,7 +628,9 @@ if (_M_X86_64)
endif()
add_subdirectory(Externals/cpp-optparse)
-dolphin_find_optional_system_library(fmt Externals/fmt 10.1)
+dolphin_find_optional_system_library_pkgconfig(FMT
+ fmt>=10.1 fmt::fmt Externals/fmt
+)
add_subdirectory(Externals/imgui)
add_subdirectory(Externals/implot)