add "-lgcov" when build libceph-common.so if ENABLE_COVERAGE=ON is set.
thus avoid link err when building any binary that need to link to libceph-common.so
Signed-off-by: Sheng Qiu <herbert1984106@gmail.com>
add_library(ceph-common SHARED ${ceph_common_objs})
target_link_libraries(ceph-common ${ceph_common_deps})
+if(ENABLE_COVERAGE)
+ target_link_libraries(ceph-common gcov)
+endif(ENABLE_COVERAGE)
add_dependencies(ceph-common legacy-option-headers ${jaeger_base})
# appease dpkg-shlibdeps
set_target_properties(ceph-common PROPERTIES