mirror of
https://github.com/apache/arrow.git
synced 2026-10-28 16:47:19 +08:00
Opt in to building the pyarrow.parquet extension, do not silently fail
Change-Id: Ie713bccbc89fc671ffd7f32bf2fb0f89b1c6d646
This commit is contained in:
1 parent
c7db80e729
commit
cab55cb250
1 file changed
+7
-1
@@ -50,6 +50,9 @@ if("${CMAKE_SOURCE_DIR}" STREQUAL "${CMAKE_CURRENT_SOURCE_DIR}")
|
||||
option(PYARROW_BUILD_TESTS
|
||||
"Build the PyArrow C++ googletest unit tests"
|
||||
OFF)
|
||||
option(PYARROW_BUILD_PARQUET
|
||||
"Build the PyArrow Parquet integration"
|
||||
OFF)
|
||||
endif()
|
||||
|
||||
find_program(CCACHE_FOUND ccache)
|
||||
@@ -445,7 +448,10 @@ set(LINK_LIBS
|
||||
arrow_ipc
|
||||
)
|
||||
|
||||
if(PARQUET_FOUND AND PARQUET_ARROW_FOUND)
|
||||
if (PYARROW_BUILD_PARQUET)
|
||||
if(NOT (PARQUET_FOUND AND PARQUET_ARROW_FOUND))
|
||||
message(FATAL_ERROR "Unable to locate Parquet libraries")
|
||||
endif()
|
||||
ADD_THIRDPARTY_LIB(parquet_arrow
|
||||
SHARED_LIB ${PARQUET_ARROW_SHARED_LIB})
|
||||
set(LINK_LIBS
|
||||
|
||||
Reference in new issue
Block a user