Skip to content

Commit

Permalink
Workaround protoc's issue(protocolbuffers/protobuf#9378).
Browse files Browse the repository at this point in the history
  • Loading branch information
baibaichen committed Jun 3, 2023
1 parent 9ff9a9f commit 26bd78a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
7 changes: 4 additions & 3 deletions cpp-ch/local-engine/CMakeLists.txt
Expand Up @@ -82,17 +82,18 @@ add_library(${LOCALENGINE_SHARED_LIB} SHARED
target_compile_options(${LOCALENGINE_SHARED_LIB} PUBLIC -fPIC
-Wno-shorten-64-to-32)

target_link_libraries(${LOCALENGINE_SHARED_LIB} PUBLIC

target_link_libraries(${LOCALENGINE_SHARED_LIB}
PUBLIC
clickhouse_new_delete
clickhouse_common_config
clickhouse_common_io
clickhouse_parsers
clickhouse_storages_system
substrait
loggers
gluten_clickhouse_backend_libs
ch_contrib::protobuf
PRIVATE
substrait
)

if (ENABLE_LOCAL_FORMATS)
Expand Down
2 changes: 1 addition & 1 deletion cpp-ch/local-engine/proto/CMakeLists.txt
Expand Up @@ -21,7 +21,7 @@ set_source_files_properties(${SUBSTRAIT_SRCS} PROPERTIES GENERATED TRUE)

add_library(substrait ${SUBSTRAIT_SRCS})
add_dependencies(substrait generate_substrait)
target_compile_options(substrait PUBLIC -fPIC -Wno-reserved-identifier -Wno-deprecated)
target_compile_options(substrait PUBLIC -fPIC -Wno-reserved-identifier -Wno-deprecated -Wno-shadow-field)
target_include_directories(substrait SYSTEM BEFORE PRIVATE ${CMAKE_CURRENT_BINARY_DIR})
target_link_libraries(substrait ch_contrib::protobuf)

0 comments on commit 26bd78a

Please sign in to comment.