Commit 343ed572 authored by Steffen Vogel's avatar Steffen Vogel 🎅🏼
Browse files

add fmtlib as submodule

parent 6ff1e40f
[submodule "thirdparty/spdlog"]
path = thirdparty/spdlog
url = https://github.com/gabime/spdlog.git
[submodule "thirdparty/fmtlib"]
path = thirdparty/fmtlib
url = https://github.com/fmtlib/fmt.git
......@@ -61,6 +61,7 @@ set(SPDLOG_BUILD_EXAMPLES OFF)
set(SPDLOG_BUILD_TESTING OFF)
set(SPDLOG_BUILD_BENCH OFF)
add_subdirectory(thirdparty/spdlog)
add_subdirectory(thirdparty/fmtlib)
pkg_check_modules(JANSSON IMPORTED_TARGET REQUIRED jansson>=2.7)
pkg_check_modules(LIBCONFIG IMPORTED_TARGET libconfig>=1.4.9)
......
......@@ -27,6 +27,7 @@
#define SPDLOG_LEVEL_NAMES { "trace", "debug", "info ", "warn ", "error", "crit ", "off " }
#define SPDLOG_NAME_WIDTH 17
#define SPDLOG_FMT_EXTERNAL
#include <spdlog/spdlog.h>
#include <spdlog/sinks/stdout_color_sinks.h>
......
......@@ -67,6 +67,7 @@ target_link_libraries(villas-common PUBLIC
${CURL_LIBRARIES}
${CMAKE_DL_LIBS}
spdlog
fmt
)
target_compile_definitions(villas-common PUBLIC
......
Subproject commit c2ce7e4f07f7b34b2c7bbd0a4d0798b1d7007f4f
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment