From 111e1fadac8a608b26312d86c496c6271058f3aa Mon Sep 17 00:00:00 2001 From: Steffen Vogel Date: Sun, 21 Oct 2018 22:18:49 +0100 Subject: [PATCH] link fmtlib relocatable --- common/CMakeLists.txt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/common/CMakeLists.txt b/common/CMakeLists.txt index d95a8a3ce..46fcfe750 100644 --- a/common/CMakeLists.txt +++ b/common/CMakeLists.txt @@ -63,6 +63,8 @@ set(SPDLOG_BUILD_BENCH OFF) add_subdirectory(thirdparty/spdlog) add_subdirectory(thirdparty/fmtlib) +target_compile_options(fmt PUBLIC -fPIC) + pkg_check_modules(JANSSON IMPORTED_TARGET REQUIRED jansson>=2.7) pkg_check_modules(LIBCONFIG IMPORTED_TARGET libconfig>=1.4.9)