Skip to content

Commit

Permalink
Require CMake 3.29+ for FetchContent
Browse files Browse the repository at this point in the history
  • Loading branch information
kou committed Jul 5, 2024
1 parent 5c7fd35 commit 396afcf
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions cpp/cmake_modules/ThirdpartyToolchain.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -4494,7 +4494,7 @@ target_include_directories(arrow::hadoop INTERFACE "${HADOOP_HOME}/include")
function(build_orc)
message(STATUS "Building Apache ORC from source")

if(CMAKE_VERSION VERSION_GREATER_EQUAL 3.28)
if(CMAKE_VERSION VERSION_GREATER_EQUAL 3.29)
fetchcontent_declare(orc
${FC_DECLARE_COMMON_OPTIONS}
URL ${ORC_SOURCE_URL}
Expand Down Expand Up @@ -4589,9 +4589,6 @@ function(build_orc)
${CMAKE_CURRENT_BINARY_DIR}/_deps/orc-src/cmake_modules)

fetchcontent_makeavailable(orc)
if(CMAKE_VERSION VERSION_LESS 3.28)
set_property(DIRECTORY ${orc_SOURCE_DIR} PROPERTY EXCLUDE_FROM_ALL TRUE)
endif()

add_library(orc::orc INTERFACE IMPORTED)
target_link_libraries(orc::orc INTERFACE orc)
Expand Down

0 comments on commit 396afcf

Please sign in to comment.