提交 9e5c04d0 编写于 作者: N Nicky Chan 提交者: daminglu

Fix no current thread trap6 (#466)

上级 2b2eb8cd
......@@ -26,12 +26,19 @@ endif()
add_library(core SHARED ${PROJECT_SOURCE_DIR}/visualdl/logic/pybind.cc)
## do not link python library and let system auto resolve to avoid different python lib conflict
if (NOT ON_RELEASE)
add_dependencies(core pybind python im entry tablet storage sdk protobuf glog eigen3)
target_link_libraries(core PRIVATE pybind entry binary_record python im tablet storage sdk protobuf glog ${OPTIONAL_LINK_FLAGS})
add_dependencies(core pybind im entry tablet storage sdk protobuf glog eigen3)
target_link_libraries(core PRIVATE pybind entry binary_record im tablet storage sdk protobuf glog ${OPTIONAL_LINK_FLAGS})
else()
add_dependencies(core pybind python im entry tablet storage sdk protobuf eigen3)
target_link_libraries(core PRIVATE pybind entry binary_record python im tablet storage sdk protobuf ${OPTIONAL_LINK_FLAGS})
add_dependencies(core pybind im entry tablet storage sdk protobuf eigen3)
target_link_libraries(core PRIVATE pybind entry binary_record im tablet storage sdk protobuf ${OPTIONAL_LINK_FLAGS})
endif()
## MacOS needs this flag to import python lib
if (APPLE)
set_target_properties(core PROPERTIES LINK_FLAGS "-undefined dynamic_lookup")
endif()
if (MSVC)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册