mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2025-11-29 17:38:24 +08:00
fix(Cmake/FindMySQL): corrected registry hints on windows (#23303)
This commit is contained in:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user