File tree Expand file tree Collapse file tree 1 file changed +9
-0
lines changed
Expand file tree Collapse file tree 1 file changed +9
-0
lines changed Original file line number Diff line number Diff 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)
You can’t perform that action at this time.
0 commit comments