FindMySQL.cmake: Do not call try_run when cross-compiling

try_run produces an AUTHOR_WARNING if we run it when cross-compiling without CMAKE_CROSSCOMPILING_EMULATOR set suggesting we should avoid this.

This is a copy of TangoDatabase!73 (merged) to keep each copy of FindMySQL.cmake inline.

Merge request reports

Loading