From: Abutalib Aghayev Date: Mon, 8 Jun 2020 14:01:19 +0000 (-0400) Subject: src: Add missing PRIVATE keyword to target_link_libraries command. X-Git-Tag: wip-pdonnell-testing-20200918.022351~1042^2~1 X-Git-Url: http://git.apps.os.sepia.ceph.com/?a=commitdiff_plain;h=f1a214c4490b42cf2ee84d1e9c635679d406555d;p=ceph-ci.git src: Add missing PRIVATE keyword to target_link_libraries command. This fixes the following cmake error that happens if you have libzbc installed: CMake Error at src/blk/CMakeLists.txt:40 (target_link_libraries): The keyword signature for target_link_libraries has already been used with the target "blk". All uses of target_link_libraries with a target must be either all-keyword or all-plain. The uses of the keyword signature are here: * src/blk/CMakeLists.txt:32 (target_link_libraries) Signed-off-by: Abutalib Aghayev --- diff --git a/src/blk/CMakeLists.txt b/src/blk/CMakeLists.txt index d42a9226b46..d10cdec7e17 100644 --- a/src/blk/CMakeLists.txt +++ b/src/blk/CMakeLists.txt @@ -37,7 +37,7 @@ if(WITH_SPDK) endif() if(HAVE_LIBZBC) - target_link_libraries(blk ${ZBC_LIBRARIES}) + target_link_libraries(blk PRIVATE ${ZBC_LIBRARIES}) endif() if(WITH_BLUESTORE_PMEM OR WITH_RBD_RWL)