Resync
[CMakeLuaTailorHgBridge.git] / CMakeLua / Modules / FindWget.cmake
blobff4134744e89567bad031425a5e241b6efedc318
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.
7 INCLUDE(FindCygwin)
9 FIND_PROGRAM(WGET_EXECUTABLE
10   wget
11   ${CYGWIN_INSTALL_PATH}/bin
14 # handle the QUIETLY and REQUIRED arguments and set WGET_FOUND to TRUE if 
15 # all listed variables are TRUE
16 INCLUDE(FindPackageHandleStandardArgs)
17 FIND_PACKAGE_HANDLE_STANDARD_ARGS(Wget DEFAULT_MSG WGET_EXECUTABLE)
19 MARK_AS_ADVANCED( WGET_EXECUTABLE )
21 # WGET option is deprecated.
22 # use WGET_EXECUTABLE instead.
23 SET (WGET ${WGET_EXECUTABLE} )