Skip to content
This repository was archived by the owner on May 10, 2024. It is now read-only.
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 15 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -537,6 +537,15 @@ else()
endif()
endif()

#############################################################
# OpenSSL linkage
find_package(OpenSSL REQUIRED)
message(STATUS "OPENSSL_FOUND ${OPENSSL_FOUND}")
if(OPENSSL_FOUND)
set(OPENSSL_USE_STATIC_LIBS TRUE)
include_directories(${OPENSSL_INCLUDE_DIR})
endif()

#############################################################
# Apache Arrow linkage

Expand Down Expand Up @@ -691,6 +700,8 @@ set(LIBPARQUET_SRCS
src/parquet/types.cc
src/parquet/util/comparison.cc
src/parquet/util/memory.cc
src/parquet/util/crypto.cc
src/parquet/encryption.cc
)

# # Ensure that thrift compilation is done before using its generated headers
Expand All @@ -712,6 +723,10 @@ if (NOT PARQUET_MINIMAL_DEPENDENCY)
# Although we don't link parquet_objlib against anything, we need it to depend
# on these libs as we may generate their headers via ExternalProject_Add
set(PARQUET_DEPENDENCIES ${PARQUET_DEPENDENCIES} ${LIBPARQUET_INTERFACE_LINK_LIBS})
set(LIBPARQUET_INTERFACE_LINK_LIBS
${OPENSSL_CRYPTO_LIBRARY}
${LIBPARQUET_INTERFACE_LINK_LIBS}
)
endif()

if(NOT APPLE AND NOT MSVC)
Expand Down
4 changes: 4 additions & 0 deletions examples/low-level-api/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,12 @@
if (PARQUET_BUILD_EXECUTABLES)
add_executable(reader-writer reader-writer.cc)
add_executable(reader-writer2 reader-writer2.cc)
add_executable(encryption-reader-writer encryption-reader-writer.cc)
target_include_directories(reader-writer PRIVATE .)
target_include_directories(reader-writer2 PRIVATE .)
target_include_directories(encryption-reader-writer PRIVATE .)
target_link_libraries(reader-writer parquet_static)
target_link_libraries(reader-writer2 parquet_static)

target_link_libraries(encryption-reader-writer parquet_static)
endif()
Loading