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()