mirror of
https://github.com/Kitware/CMake.git
synced 2026-03-09 10:00:12 -05:00
Merge topic 'FindSQLite3-pkg-config' into release-3.31
2d228201fcHelp: Guard calls to pkg_check_modules in cmake-developer(7) example674a987898FindSQLite3: Guard calls to pkg_check_modules Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !9983
This commit is contained in:
@@ -408,7 +408,9 @@ starting point.
|
||||
.. code-block:: cmake
|
||||
|
||||
find_package(PkgConfig)
|
||||
pkg_check_modules(PC_Foo QUIET Foo)
|
||||
if(PKG_CONFIG_FOUND)
|
||||
pkg_check_modules(PC_Foo QUIET Foo)
|
||||
endif()
|
||||
|
||||
This should define some variables starting ``PC_Foo_`` that contain the
|
||||
information from the ``Foo.pc`` file.
|
||||
|
||||
Reference in New Issue
Block a user