From 24de3b49c357cde2393845e7a6d4ff0ec296f1b8 Mon Sep 17 00:00:00 2001 From: Peter Kokot Date: Wed, 12 Mar 2025 07:23:43 +0100 Subject: [PATCH] FindWget: Update documentation --- Modules/FindWget.cmake | 38 +++++++++++++++++++++++++++++++++----- 1 file changed, 33 insertions(+), 5 deletions(-) diff --git a/Modules/FindWget.cmake b/Modules/FindWget.cmake index 9e3226a057..ef63d1eb32 100644 --- a/Modules/FindWget.cmake +++ b/Modules/FindWget.cmake @@ -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)