diff options
author | Brad King <brad.king@kitware.com> | 2024-11-12 15:16:33 (GMT) |
---|---|---|
committer | Kitware Robot <kwrobot@kitware.com> | 2024-11-12 15:16:46 (GMT) |
commit | 4f0eb0a41ef62a9dcf66faed7bc42df453627230 (patch) | |
tree | 611bb8ef2c65e636f094ab5548b0d3dcaa5d752f /Help | |
parent | ab6a317cf1627ad83c454f0abb89992b05e1a0fe (diff) | |
parent | 2d228201fcbf6397041108afdf5989cb83dcd7c3 (diff) | |
download | CMake-4f0eb0a41ef62a9dcf66faed7bc42df453627230.zip CMake-4f0eb0a41ef62a9dcf66faed7bc42df453627230.tar.gz CMake-4f0eb0a41ef62a9dcf66faed7bc42df453627230.tar.bz2 |
Merge topic 'FindSQLite3-pkg-config' into release-3.31
2d228201fc Help: Guard calls to pkg_check_modules in cmake-developer(7) example
674a987898 FindSQLite3: Guard calls to pkg_check_modules
Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !9983
Diffstat (limited to 'Help')
-rw-r--r-- | Help/manual/cmake-developer.7.rst | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/Help/manual/cmake-developer.7.rst b/Help/manual/cmake-developer.7.rst index cebe8f9..fc7a27d 100644 --- a/Help/manual/cmake-developer.7.rst +++ b/Help/manual/cmake-developer.7.rst @@ -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. |