From: Kefu Chai Date: Wed, 21 Jun 2017 15:34:49 +0000 (+0800) Subject: cmake: do not add dependencies to INTERFACE library on cmake < 3.3 X-Git-Tag: v12.1.0~24^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=96b20164893cb9270e0af602a57d4945dce91f36;p=ceph.git cmake: do not add dependencies to INTERFACE library on cmake < 3.3 otherwise we will have add_dependencies Cannot add target-level dependencies to INTERFACE library Signed-off-by: Kefu Chai --- diff --git a/cmake/modules/BuildBoost.cmake b/cmake/modules/BuildBoost.cmake index d6466b02d4320..2b5f87740a651 100644 --- a/cmake/modules/BuildBoost.cmake +++ b/cmake/modules/BuildBoost.cmake @@ -137,7 +137,7 @@ macro(build_boost version) endforeach() # for header-only libraries - if(CMAKE_VERSION VERSION_LESS 3.0) + if(CMAKE_VERSION VERSION_LESS 3.3) # only ALIAS and INTERFACE target names allow ":" in it, but # INTERFACE library is not allowed until cmake 3.1 add_custom_target(Boost.boost DEPENDS Boost)