Find exact (minor) version of Python. (#40)

This commit is contained in:
Mikaël Capelle
2025-07-12 14:57:51 +02:00
committed by GitHub
parent ec11e37488
commit 49ec9e1223
+1 -1
View File
@@ -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()