From cda002ad913256d777d6c503fb2382686841e462 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Juanjo=20Guti=C3=A9rrez?= Date: Fri, 28 Mar 2025 17:42:47 +0100 Subject: [PATCH] add fmt dependency --- CMakeLists.txt | 5 ++++- Dockerfile | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 272d3ec..4237637 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -29,7 +29,9 @@ target_compile_definitions(hermes PRIVATE LOGGER_CLASS=${LOGGER_CLASS}) target_sources(hermes PRIVATE src/${LOGGER_CLASS}.cpp) # required dependency sqlite3 -find_library (SQLITE3_LIBRARY NAMES libsqlite3 sqlite3) +find_library (SQLITE3_LIBRARY REQUIRED NAMES libsqlite3 sqlite3) + +find_library (FMT_LIBRARY REQUIRED NAMES fmt) # optional dependency libspf2 find_library (SPF2_LIBRARY REQUIRED NAMES spf2 libspf2) @@ -93,6 +95,7 @@ target_link_libraries(hermes ${SQLITE3_LIBRARY} ${OPENSSL_LIBRARIES} ${SPF2_LIBRARY} + ${FMT_LIBRARY} pthread) install(TARGETS hermes diff --git a/Dockerfile b/Dockerfile index e4a1771..d141f33 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,7 +1,7 @@ FROM alpine:3.21 ADD . /hermes WORKDIR /hermes -RUN apk add --no-cache graphviz doxygen gcc make openssl-dev libspf2-dev cmake g++ sqlite-dev gettext-dev python3 boost-dev fmt +RUN apk add --no-cache graphviz doxygen gcc make openssl-dev libspf2-dev cmake g++ sqlite-dev gettext-dev python3 boost-dev fmt-dev RUN cmake -B build RUN cmake --build build RUN mkdir /hermes-installation