Add python 3.12 to FindPython search path

Look for python 3.12 in the registry along with all the other versions.
master
Bennett Goble 2023-10-08 16:36:54 -07:00
parent 2465470817
commit e9f493cea0
1 changed files with 1 additions and 1 deletions

View File

@ -13,7 +13,7 @@ elseif (WINDOWS)
foreach(hive HKEY_CURRENT_USER HKEY_LOCAL_MACHINE)
# prefer more recent Python versions to older ones, if multiple versions
# are installed
foreach(pyver 3.11 3.10 3.9 3.8 3.7)
foreach(pyver 3.12 3.11 3.10 3.9 3.8 3.7)
list(APPEND regpaths "[${hive}\\SOFTWARE\\Python\\PythonCore\\${pyver}\\InstallPath]")
endforeach()
endforeach()