Skip to content

Commit

Permalink
apacheGH-42017: [CI][Python][C++] Fix utf8proc detection for wheel on…
Browse files Browse the repository at this point in the history
… Windows
  • Loading branch information
kou committed Jun 7, 2024
1 parent 9ee6ea7 commit e261175
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
7 changes: 6 additions & 1 deletion cpp/cmake_modules/Findutf8proc.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ if(utf8proc_FOUND)
return()
endif()

if(ARROW_PACKAGE_KIND STREQUAL "vcpkg")
if(ARROW_PACKAGE_KIND STREQUAL "vcpkg" OR VCPKG_ROOT)
set(find_package_args "")
if(utf8proc_FIND_VERSION)
list(APPEND find_package_args ${utf8proc_FIND_VERSION})
Expand All @@ -33,6 +33,11 @@ if(ARROW_PACKAGE_KIND STREQUAL "vcpkg")
find_package(utf8proc NAMES unofficial-utf8proc ${find_package_args})
if(utf8proc_FOUND)
add_library(utf8proc::utf8proc ALIAS utf8proc)
if(NOT utf8proc_VERSION)
# vcpkg's CMake package doesn't provide version.
# It's supported since 2.7.0. So we use 2.7.0 for now.
set(utf8proc_VERSION "2.7.0")
endif()
return()
endif()
endif()
Expand Down
3 changes: 0 additions & 3 deletions cpp/cmake_modules/Usevcpkg.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -237,9 +237,6 @@ set(LZ4_ROOT
CACHE STRING "")

if(CMAKE_HOST_WIN32)
set(utf8proc_MSVC_STATIC_LIB_SUFFIX
""
CACHE STRING "")
set(LZ4_MSVC_LIB_PREFIX
""
CACHE STRING "")
Expand Down

0 comments on commit e261175

Please sign in to comment.