1
0
Fork 0
mirror of https://git.rwth-aachen.de/acs/public/villas/node/ synced 2025-03-09 00:00:00 +01:00

add fmtlib as submodule

This commit is contained in:
Steffen Vogel 2018-08-27 11:02:54 +02:00
parent ea3eb34a88
commit 13a9fcd10b
5 changed files with 7 additions and 0 deletions

3
common/.gitmodules vendored
View file

@ -1,3 +1,6 @@
[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

View file

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

View file

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

View file

@ -67,6 +67,7 @@ target_link_libraries(villas-common PUBLIC
${CURL_LIBRARIES}
${CMAKE_DL_LIBS}
spdlog
fmt
)
target_compile_definitions(villas-common PUBLIC

1
common/thirdparty/fmtlib vendored Submodule

@ -0,0 +1 @@
Subproject commit c2ce7e4f07f7b34b2c7bbd0a4d0798b1d7007f4f