mirror of
https://github.com/qTox/qTox.git
synced 2024-03-22 14:00:36 +08:00
e4c7d81ab2
Switch from `pkg_search_module` to `pkg_check_modules` to find .pc and evaluate .pc files of dependencies. Now, in case of any errors, a clear message is issued about what is wrong, making it obvious what to do. As of c-toxcore-0.2.11, my system's toxcore.pc file contains this line: ``` Requires.private: libsodium opus vpx ``` Previously, with opus missing, cmake/Dependencies.cmake through an error about toxcore not being found, but never actually told why (also it was misleading, because opus was missing, not toxcore). Before: ``` <...> -- Checking for one of the modules 'toxcore' -- TOXCORE not found -- Checking for one of the modules 'toxav' -- TOXAV not found <...> ``` After: ``` <...> -- Checking for module 'toxcore' -- Package 'opus', required by 'toxcore', not found -- TOXCORE not found -- Checking for module 'toxav' -- No package 'toxav' found -- TOXAV not found <...> ``` |
||
---|---|---|
.. | ||
CheckAtomic.cmake | ||
Dependencies.cmake | ||
Installation.cmake | ||
Qt5CorePatches.cmake | ||
Testing.cmake |