Files
termux-packages/packages/libarrow-cpp/python-CMakeLists.txt.patch
termux-pacman-bot 57c4e58b62 bump(main/libarrow-cpp): 19.0.1
`python-pyarrow` and `libarrow-cpp` packages versions were required to be aligned and they were built from the same source so they were united into package and its subpackage to reduce maintenance cost.
2025-03-03 12:45:54 +00:00

19 lines
646 B
Diff

--- a/python/CMakeLists.txt
+++ b/python/CMakeLists.txt
@@ -256,6 +256,7 @@
# Python and Numpy libraries
find_package(Python3Alt REQUIRED)
+include_directories(SYSTEM ${NUMPY_INCLUDE_DIRS} ${PYTHON_INCLUDE_DIRS})
message(STATUS "Found NumPy version: ${Python3_NumPy_VERSION}")
message(STATUS "NumPy include dir: ${NUMPY_INCLUDE_DIRS}")
@@ -460,7 +461,6 @@
else()
target_link_libraries(arrow_python PRIVATE ${PYARROW_CPP_LINK_LIBS})
endif()
-target_link_libraries(arrow_python PUBLIC Python3::NumPy)
target_compile_definitions(arrow_python PRIVATE ARROW_PYTHON_EXPORTING)
install(TARGETS arrow_python
ARCHIVE DESTINATION .