summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatt Hoosier <matt.hoosier@garmin.com>2020-01-16 13:31:38 -0600
committerMatt Hoosier <matt.hoosier@garmin.com>2020-01-16 13:31:38 -0600
commit1e0bb01d84a6517a687f90f298aa62c2c164308a (patch)
treeb871f5bb8769eb59f86a5ce6c3ceccf90a5115e1
parenta0c68eb89a3feebc550e7941d22f852a7be1db5a (diff)
Link libfmt in header-only mode
This saves us the trouble of having a copy of its shared library installed into the target filesystem, which would conflict with an independently packaged copy. Only the headers are needed to accomplish the usages that Kms++ makes.
-rw-r--r--kms++/CMakeLists.txt2
1 files changed, 1 insertions, 1 deletions
diff --git a/kms++/CMakeLists.txt b/kms++/CMakeLists.txt
index e095ce0..c02cc83 100644
--- a/kms++/CMakeLists.txt
+++ b/kms++/CMakeLists.txt
@@ -22,7 +22,7 @@ target_include_directories(kms++ PUBLIC
$<INSTALL_INTERFACE:include>
PRIVATE src)
-target_link_libraries(kms++ ${LIBDRM_LIBRARIES} ${LIBDRM_OMAP_LIBRARIES} fmt::fmt)
+target_link_libraries(kms++ ${LIBDRM_LIBRARIES} ${LIBDRM_OMAP_LIBRARIES} fmt::fmt-header-only)
# Set a dummy SOVERSION just to avoid having a naked .so file in the filesystem.
# This version number doesn't make any promise about API/ABI stability.