diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 22a1a4317..9c0232777 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -36,6 +36,7 @@ target_include_directories(neopg-tool PUBLIC ${BOTAN2_INCLUDE_DIRS} ${CLI11_INCLUDE_DIR} ${RANG_INCLUDE_DIR} + ${SPDLOG_INCLUDE_DIR} ../include ) @@ -269,6 +270,7 @@ target_include_directories(neopg-bin PRIVATE ${CLI11_INCLUDE_DIR} ${SPDLOG_INCLUDE_DIR} ${JSON_INCLUDE_DIR} + ${SPDLOG_INCLUDE_DIR} ../include ) target_compile_definitions(neopg-bin PRIVATE diff --git a/src/cli/packet_command.cpp b/src/cli/packet_command.cpp index 54dbb54b8..42e079e13 100644 --- a/src/cli/packet_command.cpp +++ b/src/cli/packet_command.cpp @@ -18,7 +18,9 @@ #include -#include +#include + +#include #include @@ -49,7 +51,7 @@ struct LegacyPacketSink : public RawPacketSink { auto new_header = dynamic_cast(header.get()); std::cout << "# off=" << header->m_offset - << " ctb=" << (boost::format("%02x") % (int)(uint8_t)head[0]) + << " ctb=" << fmt::format("{:02x}", static_cast((uint8_t)head[0])) << " tag=" << (int)header->type() << " hlen=" << head.length() << " plen=" << length << (new_header ? " new-ctb" : "") << "\n"; } diff --git a/src/neopg.cpp b/src/neopg.cpp index 5f740e6a8..e28a38340 100644 --- a/src/neopg.cpp +++ b/src/neopg.cpp @@ -9,12 +9,13 @@ #include +#include #include + #include #include #include -#include #include #include @@ -135,9 +136,8 @@ int main(int argc, char* argv[]) { /* Translators, please add a second line saying "Report translation bugs to <...>" with the address for translation bugs (typically your translation team's web or email address). */ - app.set_footer((boost::format(_("Report bugs to %s")) % - "https://github.com/das-labor/neopg") - .str()); + app.set_footer(fmt::format(_("Report bugs to {}"), + "https://github.com/das-labor/neopg")); // app.require_subcommand(1); app.set_help_flag("--help", _("display help and exit")); app.add_subcommand("help", _("display help and exit"))