This is an automated email from the ASF dual-hosted git repository.
kou pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/arrow.git
The following commit(s) were added to refs/heads/main by this push:
new 09cc2cfb31 GH-49789: [C++] Use `CMAKE_INSTALL_DOCDIR` instead of
static `share/doc/${PROJECT_NAME}` (#49790)
09cc2cfb31 is described below
commit 09cc2cfb31356d1b850e1f3705c91d87947df994
Author: Sutou Kouhei <[email protected]>
AuthorDate: Mon Apr 20 20:17:00 2026 +0900
GH-49789: [C++] Use `CMAKE_INSTALL_DOCDIR` instead of static
`share/doc/${PROJECT_NAME}` (#49790)
### 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.
* GitHub Issue: #49789
Authored-by: Sutou Kouhei <[email protected]>
Signed-off-by: Sutou Kouhei <[email protected]>
---
cpp/CMakeLists.txt | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/cpp/CMakeLists.txt b/cpp/CMakeLists.txt
index a77ed39eac..4c44db6983 100644
--- a/cpp/CMakeLists.txt
+++ b/cpp/CMakeLists.txt
@@ -174,7 +174,7 @@ set(ARROW_GDB_DIR
"${CMAKE_INSTALL_DATADIR}/${PROJECT_NAME}/gdb")
set(ARROW_FULL_GDB_DIR "${CMAKE_INSTALL_FULL_DATADIR}/${PROJECT_NAME}/gdb")
set(ARROW_GDB_AUTO_LOAD_DIR "${CMAKE_INSTALL_DATADIR}/gdb/auto-load")
set(ARROW_CMAKE_DIR "${CMAKE_INSTALL_LIBDIR}/cmake")
-set(ARROW_DOC_DIR "share/doc/${PROJECT_NAME}")
+set(ARROW_DOC_DIR "${CMAKE_INSTALL_DOCDIR}")
set(BUILD_SUPPORT_DIR "${CMAKE_SOURCE_DIR}/build-support")