Skip to content

Commit

Permalink
Update comment about finding NumPy
Browse files Browse the repository at this point in the history
  • Loading branch information
nilsvu committed Feb 16, 2023
1 parent 82ee918 commit 1006076
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions cmake/SetupPypp.cmake
Expand Up @@ -8,8 +8,10 @@
# variable set by the user.
find_package(Python REQUIRED COMPONENTS Interpreter Development)

# We can't rely on CMake 3.14 quite yet so we backport the `Python::NumPy`
# imported target that FindPython in CMake 3.14+ could also provide.
# CMake's FindPython has trouble finding NumPy when it isn't installed in the
# Python executable's directory, and can't be given hints either (as of CMake
# version 3.25). So we find NumPy ourselves (which isn't much different to
# what FindPython does internally anyway).
find_package(NumPy 1.10 REQUIRED)

message(STATUS "NumPy incl: " ${NUMPY_INCLUDE_DIRS})
Expand Down

0 comments on commit 1006076

Please sign in to comment.