2 # This module looks for wget. This module defines the
4 # WGET_EXECUTABLE: the full path to the wget tool.
5 # WGET_FOUND: True if wget has been found.
7 #=============================================================================
8 # Copyright 2001-2009 Kitware, Inc.
10 # Distributed under the OSI-approved BSD License (the "License");
11 # see accompanying file Copyright.txt for details.
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.)
22 find_program(WGET_EXECUTABLE
24 ${CYGWIN_INSTALL_PATH}/bin
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)
32 mark_as_advanced( WGET_EXECUTABLE )
34 # WGET option is deprecated.
35 # use WGET_EXECUTABLE instead.
36 set (WGET ${WGET_EXECUTABLE} )