Skip to content

cmake: Fix MyGUI detection

Gleb Mazovetskiy requested to merge glebm/openmw:fix-libfind-pkg-detect into master

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

Merge request reports