Imported Upstream version 2.8.10.2
[platform/upstream/cmake.git] / Modules / FindWget.cmake
1 # - Find wget
2 # This module looks for wget. This module defines the
3 # following values:
4 #  WGET_EXECUTABLE: the full path to the wget tool.
5 #  WGET_FOUND: True if wget has been found.
6
7 #=============================================================================
8 # Copyright 2001-2009 Kitware, Inc.
9 #
10 # Distributed under the OSI-approved BSD License (the "License");
11 # see accompanying file Copyright.txt for details.
12 #
13 # This software is distributed WITHOUT ANY WARRANTY; without even the
14 # implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
15 # See the License for more information.
16 #=============================================================================
17 # (To distribute this file outside of CMake, substitute the full
18 #  License text for the above reference.)
19
20 include(FindCygwin)
21
22 find_program(WGET_EXECUTABLE
23   wget
24   ${CYGWIN_INSTALL_PATH}/bin
25 )
26
27 # handle the QUIETLY and REQUIRED arguments and set WGET_FOUND to TRUE if
28 # all listed variables are TRUE
29 include(${CMAKE_CURRENT_LIST_DIR}/FindPackageHandleStandardArgs.cmake)
30 FIND_PACKAGE_HANDLE_STANDARD_ARGS(Wget DEFAULT_MSG WGET_EXECUTABLE)
31
32 mark_as_advanced( WGET_EXECUTABLE )
33
34 # WGET option is deprecated.
35 # use WGET_EXECUTABLE instead.
36 set (WGET ${WGET_EXECUTABLE} )