Skip to content
This repository was archived by the owner on May 10, 2024. It is now read-only.

PARQUET-932: Add option to build parquet library with minimal dependency#279

Closed
majetideepak wants to merge 4 commits into
apache:masterfrom
majetideepak:ParquetMinimal
Closed

PARQUET-932: Add option to build parquet library with minimal dependency#279
majetideepak wants to merge 4 commits into
apache:masterfrom
majetideepak:ParquetMinimal

Conversation

@majetideepak

@majetideepak majetideepak commented Mar 30, 2017

Copy link
Copy Markdown

If users want to build only the parquet library, thirdparty headers are sufficient and GTEST and GBENCHMARK are not required.

Comment thread CMakeLists.txt
OFF)
option(PARQUET_MINIMAL_DEPENDENCY
"Depend only on Thirdparty headers to build libparquet. Always OFF if building binaries"
OFF)

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We could also implicitly set this value to OFF by default and set it to ON if PARQUET_BUILD_TESTS and PARQUET_BUILD_EXECUTABLES and PARQUET_BUILD_BENCHMARKS are all OFF

@majetideepak

Copy link
Copy Markdown
Author

@xhochy, @wesm Can you give your feedback on this? I would like this patch to be committed soon.Thanks!

@wesm wesm left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks OK to me (couple questions/comments), @xhochy can you also take a look?

Comment thread cmake_modules/FindArrow.cmake Outdated
if (ARROW_INCLUDE_DIR AND ARROW_LIB_PATH)
if (ARROW_INCLUDE_DIR AND (PARQUET_MINIMAL_DEPENDENCY OR ARROW_LIB_PATH))
set(ARROW_FOUND TRUE)
set(ARROW_HEADER_NAME arrow/arrow.h)

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's called arrow/api.h

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed.

NO_DEFAULT_PATH)

if (ARROW_INCLUDE_DIR AND ARROW_LIB_PATH)
if (ARROW_INCLUDE_DIR AND (PARQUET_MINIMAL_DEPENDENCY OR ARROW_LIB_PATH))

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just so I understand, you have a build environment where only the headers are available, and no libraries?

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That is correct.

@wesm

wesm commented Apr 1, 2017

Copy link
Copy Markdown
Member

+1, merging this

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants