]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
cmake: link against libfmt
authorKefu Chai <kchai@redhat.com>
Thu, 21 Mar 2019 06:55:05 +0000 (14:55 +0800)
committerKefu Chai <kchai@redhat.com>
Thu, 21 Mar 2019 09:04:38 +0000 (17:04 +0800)
Seastar::seastar does pull in libfmt library as a PUBLIC linkage. but we
should not depend on this. if we use fmt directly, we should link against it.

Signed-off-by: Kefu Chai <kchai@redhat.com>
src/crimson/osd/CMakeLists.txt
src/test/crimson/test_buffer.cc

index e86a11b5e605c495dd857d15ab9d6c9240f7b3fc..ac821dea2b483c79f5fb45d8d97d185e3889c17d 100644 (file)
@@ -7,4 +7,4 @@ add_executable(crimson-osd
   pg.cc
   pg_meta.cc)
 target_link_libraries(crimson-osd
-  crimson-common crimson-os crimson)
+  crimson-common crimson-os crimson fmt::fmt)
index 1093b68871357ab8acd38cfb04851261ed4d7152..64a815bd2764c6e3c91233c43e89c35abf522019 100644 (file)
@@ -1,7 +1,8 @@
-#include "include/buffer.h"
+#include <iostream>
 #include <seastar/core/app-template.hh>
 #include <seastar/core/future-util.hh>
 #include <seastar/core/reactor.hh>
+#include "include/buffer.h"
 
 // allocate a foreign buffer on each cpu, collect them all into a bufferlist,
 // and destruct it on this cpu