mirror of
https://github.com/Kitware/CMake.git
synced 2026-11-08 06:16:53 +00:00
Help: Guard calls to pkg_check_modules in cmake-developer(7) example
This was missed in commit 25b947589a (Modules: Guard calls to
pkg_check_modules, 2024-08-07, v3.31.0-rc1~236^2).
This commit is contained in:
1 parent
674a987898
commit
2d228201fc
1 file changed
+3
-1
@@ -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