From 444583c7c5a1e798892005bf5d72e7b202beee42 Mon Sep 17 00:00:00 2001 From: Austin Raney Date: Wed, 17 Jul 2024 13:06:10 -0400 Subject: [PATCH] chore(cmake): fail if numpy>=2.0.0 is detected --- CMakeLists.txt | 3 +++ 1 file changed, 3 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 6258956190..22a3af6b41 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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()