commit | 25b947589a165a4bba486842dd11bfb3217b146e | [log] [tgz] |
---|---|---|
author | Kai Pastor <dg0yt@darc.de> | Wed Aug 07 20:11:41 2024 +0200 |
committer | Kai Pastor <dg0yt@darc.de> | Wed Aug 07 20:11:43 2024 +0200 |
tree | 54a33fc4700e21206c745368baae24230dbfde4c | |
parent | aa6b2180bf9926e62641871908ae059c19ddb3a3 [diff] |
Modules: Guard calls to pkg_check_modules Before calling pkg_check_modules, modules must check PKG_CONFIG_FOUND. When FindPkgConfig.cmake is loaded, pkg_check_modules is always defined regardless of pkg-config being present. However, the whole module might be disabled on user request with CMAKE_DISABLE_FIND_PACKAGE_PkgConfig. This must not break Find modules which just look for a hint or similar.