diff --git a/cmake/find_modules/FindMySQL.cmake b/cmake/find_modules/FindMySQL.cmake index bff32c78..7c0750cd 100644 --- a/cmake/find_modules/FindMySQL.cmake +++ b/cmake/find_modules/FindMySQL.cmake @@ -97,7 +97,9 @@ if (NOT TARGET MySQL::MySQL) endif() endif() - if (NOT MySQL_LIBRARIES) + # Under Windows, it's normal to not have neither pkg-config nor mysql_config, + # so don't warn about it, it's just annoying. + if (NOT MySQL_LIBRARIES AND NOT WIN32) message(WARNING "Falling back to manual MySQL search -> this might miss dependencies") endif()