Skip to content

Commit

Permalink
chore(cmake): fail if numpy>=2.0.0 is detected
Browse files Browse the repository at this point in the history
  • Loading branch information
aaraney committed Jul 17, 2024
1 parent 0917f9b commit 444583c
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -263,6 +263,9 @@ endif()
# -----------------------------------------------------------------------------
if(NGEN_WITH_PYTHON)
find_package(Python 3.6.8 REQUIRED COMPONENTS Interpreter Development NumPy)
if(${Python_NumPy_VERSION} VERSION_GREATER_EQUAL 2)
message(FATAL_ERROR "Found numpy version \"${Python_NumPy_VERSION}\"; numpy>=2.0.0 is not currently supported")
endif()
set(PYTHON_EXECUTABLE ${Python_EXECUTABLE}) # Case-sensitive difference
add_subdirectory(extern/pybind11 pybind11)
endif()
Expand Down

0 comments on commit 444583c

Please sign in to comment.