Add Boost::regex to dependencies.
continuous-integration/drone/push Build is failing Details

This commit is contained in:
tastytea 2019-12-25 23:05:48 +01:00
parent 092a34a1ab
commit 711e3199af
Signed by: tastytea
GPG Key ID: CFC39497F1B26E07
2 changed files with 3 additions and 3 deletions

View File

@ -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 ..

View File

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