|
|
|
@ -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()
|
|
|
|
|