]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
src: Add missing PRIVATE keyword to target_link_libraries command.
authorAbutalib Aghayev <agayev@cs.cmu.edu>
Mon, 8 Jun 2020 14:01:19 +0000 (10:01 -0400)
committerAbutalib Aghayev <agayev@cs.cmu.edu>
Mon, 8 Jun 2020 14:26:35 +0000 (10:26 -0400)
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 <agayev@cs.cmu.edu>
src/blk/CMakeLists.txt

index d42a9226b46031003fd44748e2919617019009c2..d10cdec7e17e3521bb620bc60c998999a8b9de55 100644 (file)
@@ -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)