Merge topic 'patch-FindWget'

24de3b49c3 FindWget: Update documentation

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !10460
This commit is contained in:
Brad King 2025-03-13 13:42:42 +00:00 committed by Kitware Robot
commit 776c4e628a

View File

@ -5,14 +5,42 @@
FindWget
--------
Find wget
This module finds the ``wget`` command-line tool for retrieving content from web
servers.
This module looks for wget. This module defines the following values:
Result Variables
^^^^^^^^^^^^^^^^
::
This module defines the following local variables:
WGET_EXECUTABLE: the full path to the wget tool.
WGET_FOUND: True if wget has been found.
``Wget_FOUND``
True if ``wget`` has been found.
Cache Variables
^^^^^^^^^^^^^^^
The following cache variables may also be set:
``WGET_EXECUTABLE``
The full path to the ``wget`` tool.
Examples
^^^^^^^^
Finding ``wget`` and executing it in a process:
.. code-block:: cmake
find_package(Wget)
if(Wget_FOUND)
execute_process(COMMAND ${WGET_EXECUTABLE} -h)
endif()
See Also
^^^^^^^^
* The :command:`file(DOWNLOAD)` command to download the given URL to a local
file.
#]=======================================================================]
include(${CMAKE_CURRENT_LIST_DIR}/FindCygwin.cmake)