kou commented on issue #14920:
URL: https://github.com/apache/arrow/issues/14920#issuecomment-1358710167

   Thanks! Could you show the output of the following `CMakeLists.txt`?
   
   ```cmake
   cmake_minimum_required(VERSION 3.20)
   project(hello LANGUAGES CXX)
   
   ## this works:
   find_package(Python 3.7 REQUIRED COMPONENTS Interpreter Development NumPy)
   
   message(STATUS "#### Python_NumPy_VERSION = ${Python_NumPy_VERSION} ")
   message(STATUS "#### Python_NumPy_FOUND = ${Python_NumPy_FOUND} ")
   message(STATUS "#### Python_NumPy_INCLUDE_DIRS = 
${Python_NumPy_INCLUDE_DIRS} ")
   message(STATUS "#### Python_EXECUTABLE = ${Python_EXECUTABLE} ")
   
   ## this leaves Python_NumPy_INCLUDE_DIRS and the other variables empty
   find_package(Python3 3.7 REQUIRED COMPONENTS Interpreter Development NumPy)
   
   message(STATUS "#### Python3_NumPy_VERSION = ${Python3_NumPy_VERSION} ")
   message(STATUS "#### Python3_NumPy_FOUND = ${Python3_NumPy_FOUND} ")
   message(STATUS "#### Python3_NumPy_INCLUDE_DIRS = 
${Python3_NumPy_INCLUDE_DIRS} ")
   message(STATUS "#### Python3_EXECUTABLE = ${Python3_EXECUTABLE} ")
   
   add_executable(hello "hello.cpp")
   ```


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to