You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@arrow.apache.org by we...@apache.org on 2019/06/14 12:55:45 UTC
[arrow] branch master updated: ARROW-5517: [C++] Only check header
basename for 'internal' when collecting public headers
This is an automated email from the ASF dual-hosted git repository.
wesm pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/arrow.git
The following commit(s) were added to refs/heads/master by this push:
new 03c0828 ARROW-5517: [C++] Only check header basename for 'internal' when collecting public headers
03c0828 is described below
commit 03c08285c692862a72cc794d9fe05961ec0ceb8e
Author: Benjamin Kietzman <be...@gmail.com>
AuthorDate: Fri Jun 14 07:55:38 2019 -0500
ARROW-5517: [C++] Only check header basename for 'internal' when collecting public headers
Author: Benjamin Kietzman <be...@gmail.com>
Closes #4551 from bkietz/5517-Header-collection-CMake-logic-should-onl and squashes the following commits:
140b95b81 <Benjamin Kietzman> only check header basename for 'internal' when collecting public headers
---
cpp/cmake_modules/BuildUtils.cmake | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/cpp/cmake_modules/BuildUtils.cmake b/cpp/cmake_modules/BuildUtils.cmake
index 781cedc..293a7ef 100644
--- a/cpp/cmake_modules/BuildUtils.cmake
+++ b/cpp/cmake_modules/BuildUtils.cmake
@@ -720,9 +720,11 @@ function(ARROW_INSTALL_ALL_HEADERS PATH)
set(PUBLIC_HEADERS)
foreach(HEADER ${CURRENT_DIRECTORY_HEADERS})
- if(NOT ((HEADER MATCHES "internal")))
- list(APPEND PUBLIC_HEADERS ${HEADER})
+ get_filename_component(HEADER_BASENAME ${HEADER} NAME)
+ if(HEADER_BASENAME MATCHES "internal")
+ continue()
endif()
+ list(APPEND PUBLIC_HEADERS ${HEADER})
endforeach()
install(FILES ${PUBLIC_HEADERS} DESTINATION "${CMAKE_INSTALL_INCLUDEDIR}/${PATH}")
endfunction()