mirror of
https://github.com/ModOrganizer2/cmake_common.git
synced 2026-07-27 14:06:46 -07:00
Find exact (minor) version of Python. (#40)
This commit is contained in:
+1
-1
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user