Skip to content

GH-49789: [C++] Use CMAKE_INSTALL_DOCDIR instead of static share/doc/${PROJECT_NAME}#49790

Open
kou wants to merge 1 commit intoapache:mainfrom
kou:cpp-arrow-doc-dir
Open

GH-49789: [C++] Use CMAKE_INSTALL_DOCDIR instead of static share/doc/${PROJECT_NAME}#49790
kou wants to merge 1 commit intoapache:mainfrom
kou:cpp-arrow-doc-dir

Conversation

@kou
Copy link
Copy Markdown
Member

@kou kou commented Apr 18, 2026

Rationale for this change

CMAKE_INSTALL_DOCDIR is the standard variable for install document directory. Packages use this variable to change install document directory.

What changes are included in this PR?

Use CMAKE_INSTALL_DOCDIR instead of static share/doc/${PROJECT_NAME}

Are these changes tested?

Yes.

Are there any user-facing changes?

Yes.

Copilot AI review requested due to automatic review settings April 18, 2026 12:44
@github-actions
Copy link
Copy Markdown

⚠️ GitHub issue #49789 has been automatically assigned in GitHub to PR creator.

@kou kou added CI: Extra: Package: Linux Run extra Linux Packages CI and removed Component: C++ labels Apr 18, 2026
@github-actions github-actions bot added the awaiting committer review Awaiting committer review label Apr 18, 2026
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR updates Arrow C++’s install configuration to use CMake’s standard documentation install directory variable (CMAKE_INSTALL_DOCDIR) instead of a hard-coded share/doc/${PROJECT_NAME}, improving compatibility with downstream packagers and custom install layouts.

Changes:

  • Switch ARROW_DOC_DIR from a static path to ${CMAKE_INSTALL_DOCDIR}.
  • Keep existing documentation-related install rules (LICENSE/NOTICE/README) but route them through the standardized docdir variable.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

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

Labels

awaiting committer review Awaiting committer review CI: Extra: Package: Linux Run extra Linux Packages CI

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants