fix(Cmake/FindMySQL): corrected registry hints on windows (#23303)

This commit is contained in:
Razor2142
2025-11-24 13:09:32 +01:00
committed by GitHub
parent 4bf18bfe06
commit dc160d6378

View File

@@ -137,7 +137,6 @@ if(WIN32)
) )
list(SORT _MYSQL_ROOT_HINTS_SUBKEYS COMPARE NATURAL ORDER DESCENDING) list(SORT _MYSQL_ROOT_HINTS_SUBKEYS COMPARE NATURAL ORDER DESCENDING)
set(_MYSQL_ROOT_HINTS_REGISTRY_LOCATIONS)
foreach(subkey IN LISTS _MYSQL_ROOT_HINTS_SUBKEYS) foreach(subkey IN LISTS _MYSQL_ROOT_HINTS_SUBKEYS)
cmake_host_system_information( cmake_host_system_information(
RESULT RESULT
@@ -147,7 +146,7 @@ if(WIN32)
"HKEY_LOCAL_MACHINE\\SOFTWARE\\MySQL AB\\${subkey}" VALUE "Location" "HKEY_LOCAL_MACHINE\\SOFTWARE\\MySQL AB\\${subkey}" VALUE "Location"
VIEW BOTH VIEW BOTH
) )
list(APPEND _MYSQL_ROOT_HINTS_REGISTRY_LOCATIONS ${_MYSQL_ROOT_HINTS_REGISTRY_LOCATION}) list(APPEND _MYSQL_ROOT_HINTS ${_MYSQL_ROOT_HINTS_REGISTRY_LOCATION})
endforeach() endforeach()
file(GLOB _MYSQL_ROOT_PATHS_VERSION_SUBDIRECTORIES file(GLOB _MYSQL_ROOT_PATHS_VERSION_SUBDIRECTORIES