提交 bb5af9b4 编写于 作者: M Megvii Engine Team

feat(lite): hidden lar gflags symbols for static link

GitOrigin-RevId: 28823da644ab1b59ced7405df57087f4567f2ce5
上级 d8bb3ff5
include_directories("${CMAKE_CURRENT_BINARY_DIR}/gflags/include")
add_subdirectory(${PROJECT_SOURCE_DIR}/third_party/gflags
${CMAKE_CURRENT_BINARY_DIR}/gflags)
......@@ -4,10 +4,13 @@ include_directories(PUBLIC
file(GLOB_RECURSE SOURCES ./*.cpp)
add_executable(load_and_run ${SOURCES})
target_link_libraries(load_and_run lite_static)
target_link_libraries(load_and_run megbrain)
target_link_libraries(load_and_run gflags)
if(APPLE)
target_link_libraries(load_and_run gflags)
else()
target_link_libraries(load_and_run gflags -Wl,--version-script=${MGE_VERSION_SCRIPT})
endif()
if(LITE_BUILD_WITH_RKNPU)
# rknn sdk1.0.0 depend on libc++_shared, use gold to remove NEEDED so symbol check
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册