From 414c2b1734bcf39135935a201f7244d79a72e172 Mon Sep 17 00:00:00 2001 From: liaogang Date: Tue, 4 Jul 2017 13:25:30 +0800 Subject: [PATCH] FIX: add any as interface dep --- cmake/external/any.cmake | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/cmake/external/any.cmake b/cmake/external/any.cmake index 62eea42692b..b61e421871a 100644 --- a/cmake/external/any.cmake +++ b/cmake/external/any.cmake @@ -5,7 +5,7 @@ SET(ANY_SOURCE_DIR ${THIRD_PARTY_PATH}/any) INCLUDE_DIRECTORIES(${ANY_SOURCE_DIR}/src/linb_any) ExternalProject_Add( - linb_any + extern_lib_any ${EXTERNAL_PROJECT_LOG_ARGS} GIT_REPOSITORY "https://github.com/thelink2012/any.git" GIT_TAG "8fef1e93710a0edf8d7658999e284a1142c4c020" @@ -17,5 +17,8 @@ ExternalProject_Add( TEST_COMMAND "" ) +ADD_LIBRARY(lib_any INTERFACE) +ADD_DEPENDENCIES(lib_any extern_lib_any) + add_definitions(-DANY_IMPL_ANY_CAST_MOVEABLE) -LIST(APPEND external_project_dependencies linb_any) \ No newline at end of file +LIST(APPEND external_project_dependencies extern_lib_any) -- GitLab