diff options
author | Kefu Chai <kchai@redhat.com> | 2017-06-21 17:34:49 +0200 |
---|---|---|
committer | Kefu Chai <kchai@redhat.com> | 2017-06-21 17:34:51 +0200 |
commit | 96b20164893cb9270e0af602a57d4945dce91f36 (patch) | |
tree | 5af3908c8683700f111b9d67237f3754df50e332 | |
parent | Merge pull request #15728 from majianpeng/bluefs-remove-memcopy-for-continue-... (diff) | |
download | ceph-96b20164893cb9270e0af602a57d4945dce91f36.tar.xz ceph-96b20164893cb9270e0af602a57d4945dce91f36.zip |
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>
Diffstat (limited to '')
-rw-r--r-- | cmake/modules/BuildBoost.cmake | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cmake/modules/BuildBoost.cmake b/cmake/modules/BuildBoost.cmake index d6466b02d43..2b5f87740a6 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) |