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 6, 2024
1 parent 9ee6ea7 commit ad25611
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 7 deletions.
8 changes: 4 additions & 4 deletions cpp/cmake_modules/Findutf8proc.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,11 @@ 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})
endif()
# if(utf8proc_FIND_VERSION)
# list(APPEND find_package_args ${utf8proc_FIND_VERSION})
# endif()
if(utf8proc_FIND_QUIETLY)
list(APPEND find_package_args QUIET)
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 ad25611

Please sign in to comment.