Skip to content

Commit

Permalink
fix loading libvelox.so failed when using static glog
Browse files Browse the repository at this point in the history
  • Loading branch information
JinHelin404 committed Sep 12, 2024
1 parent 2cbf72d commit 649b3de
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cpp/core/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -219,6 +219,7 @@ if(ENABLE_GLUTEN_VCPKG)
# reported: xxx is being linked both statically and dynamically.
target_link_options(
gluten PRIVATE -Wl,--version-script=${CMAKE_CURRENT_SOURCE_DIR}/symbols.map)
target_link_libraries(gluten PRIVATE google::glog)
endif()

if(CMAKE_CXX_COMPILER_VERSION VERSION_LESS 9.0)
Expand Down Expand Up @@ -317,7 +318,6 @@ endif()

target_link_libraries(gluten PUBLIC Arrow::parquet Arrow::arrow
Arrow::arrow_bundled_dependencies)
target_link_libraries(gluten PRIVATE google::glog)

install(TARGETS gluten DESTINATION ${CMAKE_INSTALL_LIBDIR})
install(FILES ${CMAKE_CURRENT_SOURCE_DIR}/resources/libhdfs.so
Expand Down

0 comments on commit 649b3de

Please sign in to comment.