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