From 00e9c865aec7f3ae6cd4a2e21f3a089e9a2f4a09 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=98=AF=E5=A4=95=E6=B5=81=E8=8A=B3?= <9009218+MitsuhaMiyamizu@users.noreply.github.com> Date: Fri, 14 Nov 2025 11:02:14 +0800 Subject: [PATCH] Added explicit find_package(fmt) before adding cifpp dependency. Add check for fmt library in CMake configuration --- CMakeLists.txt | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 1454444..78fe5aa 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -116,6 +116,12 @@ set(CMAKE_THREAD_PREFER_PTHREAD) set(THREADS_PREFER_PTHREAD_FLAG) find_package(Threads) +# Find fmt library for cifpp +find_package(fmt QUIET) +if(NOT fmt_FOUND) + message(WARNING "fmt library not found - cifpp may fail to link") +endif() + CPMFindPackage( NAME mcfp GIT_REPOSITORY https://github.com/mhekkel/libmcfp