Skip to content
Snippets Groups Projects
Commit 2d228201 authored by Peter Kokot's avatar Peter Kokot Committed by Brad King
Browse files

Help: Guard calls to pkg_check_modules in cmake-developer(7) example

This was missed in commit 25b94758 (Modules: Guard calls to
pkg_check_modules, 2024-08-07, v3.31.0-rc1~236^2).
parent 674a9878
No related branches found
No related tags found
No related merge requests found
......@@ -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.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment