From 6de8ce833f0ee3699c933cf4db1e4867c30d80b3 Mon Sep 17 00:00:00 2001 From: tsai Date: Wed, 15 Jun 2022 12:27:21 +0800 Subject: [PATCH] remove unused linkages --- cmake/oneflow.cmake | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/cmake/oneflow.cmake b/cmake/oneflow.cmake index 52bb18ed6b5..b93a12e55fe 100644 --- a/cmake/oneflow.cmake +++ b/cmake/oneflow.cmake @@ -184,13 +184,7 @@ relative_protobuf_generate_cpp(PROTO_SRCS PROTO_HDRS ${PROJECT_SOURCE_DIR} ${of_ oneflow_add_library(of_protoobj SHARED ${PROTO_SRCS} ${PROTO_HDRS}) add_dependencies(of_protoobj make_pyproto_dir protobuf) - -if(BUILD_SHARED_LIBS) - target_link_libraries(of_protoobj protobuf_imported) -else() - # For some unknown reasons, when building static libraries, we have to link of_protoobj with oneflow_third_party_libs - target_link_libraries(of_protoobj ${oneflow_third_party_libs}) -endif() +target_link_libraries(of_protoobj protobuf_imported) include(functional) generate_functional_api_and_pybind11_cpp(FUNCTIONAL_GENERATED_SRCS FUNCTIONAL_GENERATED_HRCS