From dc160d6378ab6835270db4caa4cdf2dd82248b22 Mon Sep 17 00:00:00 2001 From: Razor2142 Date: Mon, 24 Nov 2025 13:09:32 +0100 Subject: [PATCH] fix(Cmake/FindMySQL): corrected registry hints on windows (#23303) --- src/cmake/macros/FindMySQL.cmake | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/cmake/macros/FindMySQL.cmake b/src/cmake/macros/FindMySQL.cmake index 2a8de7e7a..999dadc48 100644 --- a/src/cmake/macros/FindMySQL.cmake +++ b/src/cmake/macros/FindMySQL.cmake @@ -137,7 +137,6 @@ if(WIN32) ) list(SORT _MYSQL_ROOT_HINTS_SUBKEYS COMPARE NATURAL ORDER DESCENDING) - set(_MYSQL_ROOT_HINTS_REGISTRY_LOCATIONS) foreach(subkey IN LISTS _MYSQL_ROOT_HINTS_SUBKEYS) cmake_host_system_information( RESULT @@ -147,7 +146,7 @@ if(WIN32) "HKEY_LOCAL_MACHINE\\SOFTWARE\\MySQL AB\\${subkey}" VALUE "Location" 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() file(GLOB _MYSQL_ROOT_PATHS_VERSION_SUBDIRECTORIES