From a6b8f3e846478a1d59aef5b0d3fc9a0597075fd0 Mon Sep 17 00:00:00 2001 From: PHILO-HE Date: Tue, 28 Dec 2021 19:43:52 +0800 Subject: [PATCH] Install re2 headers (#66) --- cpp/cmake_modules/ThirdpartyToolchain.cmake | 3 +++ 1 file changed, 3 insertions(+) diff --git a/cpp/cmake_modules/ThirdpartyToolchain.cmake b/cpp/cmake_modules/ThirdpartyToolchain.cmake index 52a7da80eb576..72bcb2da1fc42 100644 --- a/cpp/cmake_modules/ThirdpartyToolchain.cmake +++ b/cpp/cmake_modules/ThirdpartyToolchain.cmake @@ -2178,6 +2178,9 @@ macro(build_re2) set(RE2_INCLUDE_DIR "${RE2_PREFIX}/include") list(APPEND ARROW_BUNDLED_STATIC_LIBS re2::re2) + + # Install re2 headers for gazelle native code use. + install(DIRECTORY "${RE2_INCLUDE_DIR}/re2" DESTINATION "${CMAKE_INSTALL_INCLUDEDIR}") endmacro() if(ARROW_WITH_RE2)