]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
cmake: fix the build of unittest_async_compressor 10400/head
authorKefu Chai <kchai@redhat.com>
Fri, 22 Jul 2016 15:12:33 +0000 (23:12 +0800)
committerKefu Chai <kchai@redhat.com>
Fri, 22 Jul 2016 15:13:20 +0000 (23:13 +0800)
it was broken by 1e8388c

Signed-off-by: Kefu Chai <kchai@redhat.com>
src/test/common/CMakeLists.txt

index 60beb01106cc189c9fe262cb1353e816a2278547..487086b1df1c51c798dc12ba00140e5573ad4234 100644 (file)
@@ -155,11 +155,12 @@ add_ceph_unittest(unittest_bit_vector ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/unittest
 target_link_libraries(unittest_bit_vector global)
 
 # unittest_async_compressor
+# the test is disabled, because async_compressor is not used anywhere yet.
 add_executable(unittest_async_compressor
-  test_async_compressor.cc
-)
-target_link_libraries(unittest_async_compressor global)
+  test_async_compressor.cc)
+target_link_libraries(unittest_async_compressor global ${UNITTEST_LIBS})
 add_dependencies(unittest_async_compressor ceph_snappy)
+set_target_properties(unittest_async_compressor PROPERTIES COMPILE_FLAGS ${UNITTEST_CXX_FLAGS})
 
 # unittest_interval_set
 add_executable(unittest_interval_set