]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
cmake: link ceph-common against gcov if coverage is enabled 44425/head
authorSheng Qiu <herbert1984106@gmail.com>
Thu, 30 Dec 2021 03:55:49 +0000 (19:55 -0800)
committerSheng Qiu <herbert1984106@gmail.com>
Thu, 30 Dec 2021 21:48:55 +0000 (13:48 -0800)
commit9a85db6bccf253ced1f42a927ed437a0e41bae3e
treeb6a54652384666c791471bead0dc5060aaa9bcf1
parentd70fdd74b993610fb0ff26c0a96e040ffa3ddaba
cmake: link ceph-common against gcov if coverage is enabled

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>
src/CMakeLists.txt