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.
This commit is contained in:
Guilherme Janczak 2024-05-06 19:25:23 +00:00
parent 2c91367429
commit d619307a6d
No known key found for this signature in database
GPG Key ID: 9F1927DAAC7F9DCD
1 changed files with 3 additions and 1 deletions

View File

@ -628,7 +628,9 @@ if (_M_X86_64)
endif() endif()
add_subdirectory(Externals/cpp-optparse) 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/imgui)
add_subdirectory(Externals/implot) add_subdirectory(Externals/implot)