From f4cbfec5810161a5d9a12a29065201ced8de6dec Mon Sep 17 00:00:00 2001 From: Kefu Chai Date: Fri, 22 Jul 2016 23:12:33 +0800 Subject: [PATCH] cmake: fix the build of unittest_async_compressor it was broken by 1e8388c Signed-off-by: Kefu Chai --- src/test/common/CMakeLists.txt | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/test/common/CMakeLists.txt b/src/test/common/CMakeLists.txt index 60beb01106c..487086b1df1 100644 --- a/src/test/common/CMakeLists.txt +++ b/src/test/common/CMakeLists.txt @@ -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 -- 2.47.3