Skip to content

Commit

Permalink
Static library may not be built
Browse files Browse the repository at this point in the history
  • Loading branch information
kou committed Oct 20, 2023
1 parent 7e6db3e commit 58b48d0
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion cpp/src/arrow/adapters/orc/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,16 @@ install(FILES adapter.h options.h
# pkg-config support
arrow_add_pkg_config("arrow-orc")

if(ARROW_BUILD_STATIC)
set(ARROW_ORC_STATIC_LINK_LIBS ${ARROW_TEST_STATIC_LINK_LIBS})
else()
set(ARROW_ORC_STATIC_LINK_LIBS ${ARROW_TEST_SHARED_LINK_LIBS})
endif()
add_arrow_test(adapter_test
PREFIX
"arrow-orc"
STATIC_LINK_LIBS
${ARROW_TEST_STATIC_LINK_LIBS})
${ARROW_ORC_STATIC_LINK_LIBS})

set_source_files_properties(adapter_test.cc PROPERTIES SKIP_PRECOMPILE_HEADERS ON
SKIP_UNITY_BUILD_INCLUSION ON)

0 comments on commit 58b48d0

Please sign in to comment.