From 7ed11873337ad6f96dd202651ca31df70af3df59 Mon Sep 17 00:00:00 2001 From: Fabian Klebert Date: Mon, 22 Apr 2024 16:25:48 +0200 Subject: [PATCH] Guard spdlog find_package to enable external users to not use conan --- libs/httpcl/CMakeLists.txt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/libs/httpcl/CMakeLists.txt b/libs/httpcl/CMakeLists.txt index 688dfc9..9413fca 100644 --- a/libs/httpcl/CMakeLists.txt +++ b/libs/httpcl/CMakeLists.txt @@ -3,7 +3,9 @@ project(httpcl) set(CMAKE_WINDOWS_EXPORT_ALL_SYMBOLS ON) -find_package(spdlog CONFIG REQUIRED) +if(NOT TARGET spdlog) + find_package(spdlog CONFIG REQUIRED) +endif() add_library(httpcl STATIC include/httpcl/http-client.hpp