From 49ec9e1223372ca35e98bad7b87386b62e9dee8c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mika=C3=ABl=20Capelle?= Date: Sat, 12 Jul 2025 14:57:51 +0200 Subject: [PATCH] Find exact (minor) version of Python. (#40) --- mo2_utils.cmake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mo2_utils.cmake b/mo2_utils.cmake index 1376cf9..83c55df 100644 --- a/mo2_utils.cmake +++ b/mo2_utils.cmake @@ -49,7 +49,7 @@ endfunction() # \param:VARNAME name of the variable that will contain the path to Python function(mo2_find_python_executable VARNAME) if (NOT DEFINED Python_EXECUTABLE) - find_package(Python ${MO2_PYTHON_VERSION} COMPONENTS Interpreter REQUIRED) + find_package(Python ${MO2_PYTHON_VERSION} EXACT COMPONENTS Interpreter REQUIRED) endif() set(${VARNAME} ${Python_EXECUTABLE} PARENT_SCOPE) endfunction()