From 711e3199af4c24e60c18f6ff2cb8b479d6cf3952 Mon Sep 17 00:00:00 2001 From: tastytea Date: Wed, 25 Dec 2019 23:05:48 +0100 Subject: [PATCH] Add Boost::regex to dependencies. --- .drone.yml | 2 +- src/CMakeLists.txt | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.drone.yml b/.drone.yml index de10c79..40b8a08 100644 --- a/.drone.yml +++ b/.drone.yml @@ -35,7 +35,7 @@ steps: - curl -L https://packagecloud.io/mrtazz/restclient-cpp/gpgkey | apt-key add - - apt-get update -q - apt-get install -qy build-essential cmake asciidoc - - apt-get install -qy libboost-filesystem-dev libboost-log-dev libjsoncpp-dev catch libcurl4-openssl-dev restclient-cpp libpoco-dev + - apt-get install -qy libboost-filesystem-dev libboost-log-dev libboost-regex-dev libjsoncpp-dev catch libcurl4-openssl-dev restclient-cpp libpoco-dev - apt-get -qy install ./mastodon-cpp.deb - rm -rf build && mkdir -p build && cd build - cmake .. diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 6a73789..e7bb453 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -1,7 +1,7 @@ include(GNUInstallDirs) # The minimum versions should be in Debian oldstable, if possible. -find_package(Boost 1.62 REQUIRED COMPONENTS filesystem log) +find_package(Boost 1.62 REQUIRED COMPONENTS filesystem log regex) find_package(jsoncpp REQUIRED CONFIG) # 1.7.4 (Debian buster) has no version. find_package(CURL 7.52 REQUIRED) find_package(Threads REQUIRED) @@ -33,7 +33,7 @@ add_executable(mastorss ${sources}) target_link_libraries(mastorss PRIVATE jsoncpp restclient-cpp mastodon-cpp::mastodon-cpp - Boost::filesystem Boost::log) + Boost::filesystem Boost::log Boost::regex) if(BUILD_SHARED_LIBS) target_compile_definitions(mastorss PRIVATE "BOOST_ALL_DYN_LINK=1") endif()