]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
cmake: do not add dependencies to INTERFACE library on cmake < 3.3 15813/head
authorKefu Chai <kchai@redhat.com>
Wed, 21 Jun 2017 15:34:49 +0000 (23:34 +0800)
committerKefu Chai <kchai@redhat.com>
Wed, 21 Jun 2017 15:34:51 +0000 (23:34 +0800)
otherwise we will have

add_dependencies Cannot add target-level dependencies to INTERFACE
library

Signed-off-by: Kefu Chai <kchai@redhat.com>
cmake/modules/BuildBoost.cmake

index d6466b02d4320520ad1070ac5b162b380306e614..2b5f87740a65150d9151c686c98e174992cc032b 100644 (file)
@@ -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)