The FindMySQL module in qtbase/cmake contains the following code:
This is not following the CMake conventions, as documented here:
Specifically, the find_path() and find_library() calls should use the singular variable names MySQL_INCLUDE_DIR and MySQL_LIBRARY respectively. These commands are finding a single entity. The plural version of these variable names should not be stored in the cache and should be formed by populating them from the singular versions. The singular variable names should also be given to find_package_handle_standard_args().
Note that there are also configure scripts and documentation that are using the plural forms too and would need to be updated as well. I don't know the history of this module,
if it pre-dates Qt6 it might already be too late to change this. If necessary, we could probably add some logic to fall back to the plural forms if the singular forms are not populated but the plural forms are in the cache.