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:
Kefu Chai 2017-06-21 23:34:49 +08:00
parent 503de20927
commit 96b2016489
1 changed files with 1 additions and 1 deletions

View 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)