mirror of https://github.com/ceph/ceph
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 <kchai@redhat.com>
This commit is contained in:
parent
503de20927
commit
96b2016489
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue