cmake: Fix MyGUI detection
libfind_pkg_detect
used pkg_check_modules
, which requires all the
given modules to be found.
This means it always failed for MyGUI, which passes
MyGUI${MYGUI_STATIC_SUFFIX} MYGUI${MYGUI_STATIC_SUFFIX}
to it.
Replaces pkg_check_modules
with pkg_search_module
, which finds the
first match instead.
Edited by Gleb Mazovetskiy