From 52a16f8344d8e85797dd49d6be14b1c3e7f40c76 Mon Sep 17 00:00:00 2001 From: Jack Luo Date: Wed, 4 Dec 2024 16:47:31 +0800 Subject: [PATCH] Fix compilation issue on MacOS --- components/core/CMakeLists.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/components/core/CMakeLists.txt b/components/core/CMakeLists.txt index 193d167d8..7bc280ecc 100644 --- a/components/core/CMakeLists.txt +++ b/components/core/CMakeLists.txt @@ -109,7 +109,7 @@ endif() # NOTE: # - We only try to link to the static library # - spdlog uses fmt, so their versions need to be kept in-sync -find_package(fmt 8.0.1 REQUIRED) +find_package(fmt 8.0.1 EXACT REQUIRED) if(fmt_FOUND) message(STATUS "Found fmt ${fmt_VERSION}") else() @@ -124,7 +124,7 @@ if(CLP_USE_STATIC_LIBS) # source. set(spdlog_USE_STATIC_LIBS ON) endif() -find_package(spdlog 1.9.2 REQUIRED) +find_package(spdlog 1.9.2 EXACT REQUIRED) if(spdlog_FOUND) message(STATUS "Found spdlog ${spdlog_VERSION}") else()