From bc67d0c805f0a6e2883ed1ce46529190363c6bf7 Mon Sep 17 00:00:00 2001 From: runsisi Date: Sat, 23 Apr 2016 14:40:56 +0800 Subject: [PATCH] cmake: use LINK_PRIVATE instead of PRIVATE for CMake version == 2.8.11 with version 2.8.11, i.e., the minimum version required by the building system, we will hit a compile error as follows: /usr/bin/ld: cannot find -lPRIVATE collect2: error: ld returned 1 exit status make[2]: *** [lib/librbd.so.1.0.0] Error 1 make[1]: *** [src/librbd/CMakeFiles/librbd.dir/all] Error 2 Signed-off-by: runsisi --- src/librbd/CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/librbd/CMakeLists.txt b/src/librbd/CMakeLists.txt index 8254a2e8126..e75407ce031 100644 --- a/src/librbd/CMakeLists.txt +++ b/src/librbd/CMakeLists.txt @@ -70,7 +70,7 @@ add_library(librbd ${CEPH_SHARED} $ ${CMAKE_SOURCE_DIR}/src/common/ContextCompletion.cc librbd.cc) -target_link_libraries(librbd PRIVATE +target_link_libraries(librbd LINK_PRIVATE rbd_internal rbd_types journal -- 2.47.3