From dff5a68d39c5d20572ad259e48a35443692a1ac0 Mon Sep 17 00:00:00 2001 From: Kasper Peeters Date: Fri, 27 Sep 2024 22:07:46 +0100 Subject: [PATCH] Fail early if python not found. --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 22f24aeeda..9858fd1688 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -306,7 +306,7 @@ if(WIN32) ) message(STATUS "Using Python root dir ${PYTHON_HINT}") set(Python_ROOT_DIR ${PYTHON_HINT}) - find_package(Python REQUIRED COMPONENTS Interpreter Development) + find_package(Python 3.11 REQUIRED COMPONENTS Interpreter Development) else() find_package(Python REQUIRED COMPONENTS Interpreter Development) endif()