From ca636eedb9813cbd99400d5be60e86bae709dc56 Mon Sep 17 00:00:00 2001 From: Luo Tao Date: Tue, 23 Jan 2018 11:45:42 +0800 Subject: [PATCH] remove libwarpctc.so in core.so and libpaddle_fluid.so --- cmake/generic.cmake | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/cmake/generic.cmake b/cmake/generic.cmake index 585db019d52..147de8b2428 100644 --- a/cmake/generic.cmake +++ b/cmake/generic.cmake @@ -186,6 +186,11 @@ function(cc_library TARGET_NAME) add_library(${TARGET_NAME} STATIC ${cc_library_SRCS}) endif() if (cc_library_DEPS) + # Don't need link libwarpctc.so + if ("${cc_library_DEPS};" MATCHES "warpctc;") + list(REMOVE_ITEM cc_library_DEPS warpctc) + add_dependencies(${TARGET_NAME} warpctc) + endif() add_dependencies(${TARGET_NAME} ${cc_library_DEPS}) target_link_libraries(${TARGET_NAME} ${cc_library_DEPS}) endif() -- GitLab