FindWget.cmake 887 Bytes
Newer Older
1 2 3
# Distributed under the OSI-approved BSD 3-Clause License.  See accompanying
# file Copyright.txt or https://cmake.org/licensing for details.

4 5 6 7 8 9 10 11 12 13 14 15 16
#[=======================================================================[.rst:
FindWget
--------

Find wget

This module looks for wget.  This module defines the following values:

::

  WGET_EXECUTABLE: the full path to the wget tool.
  WGET_FOUND: True if wget has been found.
#]=======================================================================]
17

18
include(${CMAKE_CURRENT_LIST_DIR}/FindCygwin.cmake)
19

20
find_program(WGET_EXECUTABLE
21 22 23 24
  wget
  ${CYGWIN_INSTALL_PATH}/bin
)

25
include(${CMAKE_CURRENT_LIST_DIR}/FindPackageHandleStandardArgs.cmake)
26
FIND_PACKAGE_HANDLE_STANDARD_ARGS(Wget DEFAULT_MSG WGET_EXECUTABLE)
27

28
mark_as_advanced( WGET_EXECUTABLE )
29 30 31

# WGET option is deprecated.
# use WGET_EXECUTABLE instead.
32
set (WGET ${WGET_EXECUTABLE})