From 96b20164893cb9270e0af602a57d4945dce91f36 Mon Sep 17 00:00:00 2001 From: Kefu Chai Date: Wed, 21 Jun 2017 23:34:49 +0800 Subject: [PATCH] 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 --- cmake/modules/BuildBoost.cmake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) -- 2.39.5