1
0
mirror of https://github.com/qTox/qTox.git synced 2024-03-22 14:00:36 +08:00
qTox/cmake
Piraty e4c7d81ab2 fix(build): make pkg-config verbose about why it fails
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
<...>
```
2020-04-03 19:53:24 +02:00
..
CheckAtomic.cmake docs(copyright): update and add copyright info 2019-06-28 01:18:26 +02:00
Dependencies.cmake fix(build): make pkg-config verbose about why it fails 2020-04-03 19:53:24 +02:00
Installation.cmake docs(copyright): update and add copyright info 2019-06-28 01:18:26 +02:00
Qt5CorePatches.cmake chore(cmake): Add CMake build rules. 2017-01-08 14:46:39 +03:00
Testing.cmake revert(toxme): remove toxme from qTox - the service is offline permanently 2020-01-16 13:28:41 -08:00