diff --git a/cpp/CMakeLists.txt b/cpp/CMakeLists.txt index 5e4c2045813..f425c5f3106 100644 --- a/cpp/CMakeLists.txt +++ b/cpp/CMakeLists.txt @@ -54,7 +54,7 @@ endif() # Top level cmake dir if("${CMAKE_SOURCE_DIR}" STREQUAL "${CMAKE_CURRENT_SOURCE_DIR}") - option(ARROW_WITH_PARQUET + option(ARROW_PARQUET "Build the Parquet adapter and link to libparquet" OFF) @@ -441,7 +441,7 @@ endif (UNIX) #---------------------------------------------------------------------- # Parquet adapter -if(ARROW_WITH_PARQUET) +if(ARROW_PARQUET) find_package(Parquet REQUIRED) include_directories(SYSTEM ${PARQUET_INCLUDE_DIR}) ADD_THIRDPARTY_LIB(parquet diff --git a/cpp/doc/Parquet.md b/cpp/doc/Parquet.md new file mode 100644 index 00000000000..370ac833388 --- /dev/null +++ b/cpp/doc/Parquet.md @@ -0,0 +1,24 @@ +## Building Arrow-Parquet integration + +To build the Arrow C++'s Parquet adapter library, you must first build [parquet-cpp][1]: + +```bash +# Set this to your preferred install location +export PARQUET_HOME=$HOME/local + +git clone https://github.com/apache/parquet-cpp.git +cd parquet-cpp +source setup_build_env.sh +cmake -DCMAKE_INSTALL_PREFIX=$PARQUET_HOME +make -j4 +make install +``` + +Make sure that `$PARQUET_HOME` is set to the installation location. Now, build +Arrow with the Parquet adapter enabled: + +```bash +cmake -DARROW_PARQUET=ON +``` + +[1]: https://github.com/apache/parquet-cpp \ No newline at end of file