]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
cmake: do not include $lrc_srcs in unittest_erasure_code_lrc
authorKefu Chai <kchai@redhat.com>
Wed, 20 Jul 2016 08:01:53 +0000 (16:01 +0800)
committerKefu Chai <kchai@redhat.com>
Wed, 20 Jul 2016 08:01:55 +0000 (16:01 +0800)
as ${lrc_srcs} is not defined in the scope where
unittest_erasure_code_lrc is added as a target. and instead we link
unittest_erasure_code_lrc against ec_lrc dynamic library. so we can
safely remove ${lrc_srcs} from unittest_erasure_code_lrc.

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

index e85d39d19ce8c9652293387eefbcd3b62d2637a5..c9062e49acb719bd0d2c59fb14fa9055db71cacf 100644 (file)
@@ -143,9 +143,7 @@ endif(HAVE_BETTER_YASM_ELF64)
 
 # unittest_erasure_code_lrc
 add_executable(unittest_erasure_code_lrc
-  TestErasureCodeLrc.cc
-  ${lrc_srcs}
-  )
+  TestErasureCodeLrc.cc)
 add_ceph_unittest(unittest_erasure_code_lrc ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/unittest_erasure_code_lrc)
 target_link_libraries(unittest_erasure_code_lrc
   global