Skip to content

Commit 43fd073

Browse files
committed
Add back CMAKE_SKIP_INSTALL_RULES on RE2 to fix centos-7
1 parent 645e0a3 commit 43fd073

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

cpp/cmake_modules/ThirdpartyToolchain.cmake

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2862,8 +2862,17 @@ function(build_re2)
28622862
# Unity build causes some build errors
28632863
set(CMAKE_UNITY_BUILD OFF)
28642864

2865+
# Disable install rules for RE2 so it is not installed on centos-7.
2866+
# This can be removed once we drop centos-7 support (GH-40735).
2867+
set(CMAKE_SKIP_INSTALL_RULES ON)
2868+
28652869
fetchcontent_makeavailable(re2)
28662870

2871+
# We have to create an empty cmake_install.cmake so include() doesn't fail but doesn't install anything.
2872+
# This can be removed once we drop centos-7 support (GH-40735).
2873+
file(WRITE "${re2_BINARY_DIR}/cmake_install.cmake"
2874+
"# RE2 install disabled via CMAKE_SKIP_INSTALL_RULES\n")
2875+
28672876
set(ARROW_BUNDLED_STATIC_LIBS
28682877
${ARROW_BUNDLED_STATIC_LIBS} re2::re2
28692878
PARENT_SCOPE)

0 commit comments

Comments
 (0)