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()