]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
spdk: fixed the compilation error for testcases when use spdk v16.12
authorPan Liu <pan.liu@istuary.com>
Mon, 2 Jan 2017 08:43:59 +0000 (16:43 +0800)
committerPan Liu <pan.liu@istuary.com>
Mon, 2 Jan 2017 08:43:59 +0000 (16:43 +0800)
Signed-off-by: Pan Liu <pan.liu@istuary.com>
src/test/CMakeLists.txt
src/test/libcephd/CMakeLists.txt
src/test/osd/CMakeLists.txt

index a5719da30206ae69ddf069b33a8177c6c4b6013c..4079cbbe7c39fe48f7d095cbf8aeea8073c064b8 100644 (file)
@@ -163,7 +163,7 @@ endif(WITH_KVS)
 
 # ceph_objectstore_bench
 add_executable(ceph_objectstore_bench objectstore_bench.cc)
-target_link_libraries(ceph_objectstore_bench global ${BLKID_LIBRARIES} os)
+target_link_libraries(ceph_objectstore_bench os global ${BLKID_LIBRARIES})
 
 if(${WITH_RADOSGW})
   # test_cors
index cb711ec0ad47ce9e90552f32f19e9af07ee91d33..60a28cbb81286461512ab88720bc7f06a3481a7c 100644 (file)
@@ -4,6 +4,11 @@ set(cephdtest_srcs
 add_library(cephdtest STATIC ${cephdtest_srcs})
 set_target_properties(cephdtest PROPERTIES COMPILE_FLAGS ${UNITTEST_CXX_FLAGS})
 
+#Enable spdk
+if(HAVE_SPDK)
+link_directories("${CMAKE_SOURCE_DIR}/src/spdk/build/lib/")
+endif(HAVE_SPDK)
+
 # ceph_test_cephd_api_misc
 add_executable(ceph_test_cephd_api_misc
   misc.cc
index 638d2e2cdda59864da2ba7805778617bec907a6c..f380fb79ba920a754fd30bf100b27cceb9450e35 100644 (file)
@@ -55,7 +55,7 @@ add_executable(unittest_osdscrub
   $<TARGET_OBJECTS:unit-main>
   )
 add_ceph_unittest(unittest_osdscrub ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/unittest_osdscrub)
-target_link_libraries(unittest_osdscrub osd global ${CMAKE_DL_LIBS} os mon ${BLKID_LIBRARIES})
+target_link_libraries(unittest_osdscrub osd os global ${CMAKE_DL_LIBS} mon ${BLKID_LIBRARIES})
 
 # unittest_pglog
 add_executable(unittest_pglog