From: runsisi Date: Sat, 23 Apr 2016 06:40:56 +0000 (+0800) Subject: cmake: use LINK_PRIVATE instead of PRIVATE for CMake version == 2.8.11 X-Git-Tag: v11.0.0~832^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F8715%2Fhead;p=ceph.git 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 --- 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