diff --git a/CMakeLists.txt b/CMakeLists.txt index e6b9227..cbf86de 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -7,7 +7,7 @@ # The full license is in the file LICENSE, distributed with this software. # ############################################################################ -cmake_minimum_required(VERSION 3.29) +cmake_minimum_required(VERSION 3.16) project(xtensor-python) set(CMAKE_MODULE_PATH ${PROJECT_SOURCE_DIR}/cmake ${CMAKE_MODULE_PATH}) diff --git a/cmake/FindNumPy.cmake b/cmake/FindNumPy.cmake index 24f3c32..f043566 100644 --- a/cmake/FindNumPy.cmake +++ b/cmake/FindNumPy.cmake @@ -40,9 +40,9 @@ # Finding NumPy involves calling the Python interpreter if(NumPy_FIND_REQUIRED) - find_package(Python COMPONENTS Interpreter REQUIRED) + find_package(PythonInterp REQUIRED) else() - find_package(Python COMPONENTS Interpreter) + find_package(PythonInterp) endif() if(NOT PYTHONINTERP_FOUND)