diff --git a/CMakeLists.txt b/CMakeLists.txt index 9858fd1688..85b4ec755d 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 3.11 REQUIRED COMPONENTS Interpreter Development) + find_package(Python 3.11 EXACT REQUIRED COMPONENTS Interpreter Development) else() find_package(Python REQUIRED COMPONENTS Interpreter Development) endif()