From 246c5ad8017067c37e9e09e9a7453bfa55968371 Mon Sep 17 00:00:00 2001 From: sha512sum Date: Wed, 25 Sep 2024 19:10:50 +0000 Subject: [PATCH] Add spdlog dependency --- CMakeLists.txt | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index fa343f4..f6b8804 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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()