From c0a9d4dde0423afe7ce9d8233c54de9fc97a52c7 Mon Sep 17 00:00:00 2001 From: Matevz Morato Date: Fri, 6 Jun 2025 09:50:51 +0200 Subject: [PATCH 1/2] Lower the minimum CMake version --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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}) From 629004f274ff999388ebb59bd5b59e43af6eb537 Mon Sep 17 00:00:00 2001 From: Matevz Morato Date: Fri, 6 Jun 2025 16:30:43 +0200 Subject: [PATCH 2/2] Revert updating the way to find python --- cmake/FindNumPy.cmake | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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)