Add spdlog dependency

This commit is contained in:
sha512sum 2024-09-25 19:10:50 +00:00
parent ec53c19642
commit 246c5ad801

View file

@ -56,6 +56,13 @@ CPMAddPackage(
CPMAddPackage("gh:zeux/pugixml@1.14")
CPMAddPackage("gh:fmtlib/fmt#10.2.1")
CPMAddPackage(
NAME spdlog
VERSION 1.14.1
GIT_REPOSITORY "https://github.com/gabime/spdlog.git"
EXCLUDE_FROM_ALL ON
OPTIONS "SPDLOG_INSTALL ON"
)
set(TMP ${CPM_USE_LOCAL_PACKAGES})
set(CPM_USE_LOCAL_PACKAGES ${UTEMPL_USE_LOCAL_PACKAGE})
@ -96,12 +103,12 @@ target_include_directories(larra_xmpp PUBLIC
if(TARGET Boost::pfr)
target_link_libraries(larra_xmpp PUBLIC
Boost::asio Boost::serialization utempl::utempl pugixml::pugixml OpenSSL::SSL
OpenSSL::Crypto)
OpenSSL::Crypto spdlog)
else()
find_package(Boost 1.85.0 REQUIRED)
target_link_libraries(larra_xmpp PUBLIC
utempl::utempl ${Boost_LIBRARIES} pugixml::pugixml OpenSSL::SSL
OpenSSL::Crypto)
OpenSSL::Crypto spdlog)
endif()