Skip to content

Commit

Permalink
Guard spdlog find_package to enable external users to not use conan
Browse files Browse the repository at this point in the history
  • Loading branch information
fklebert committed Apr 22, 2024
1 parent c0c985c commit 7ed1187
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion libs/httpcl/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 7ed1187

Please sign in to comment.