FindWget.cmake 618 B

1234567891011121314151617181920212223
  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. INCLUDE(FindCygwin)
  7. FIND_PROGRAM(WGET_EXECUTABLE
  8. wget
  9. ${CYGWIN_INSTALL_PATH}/bin
  10. )
  11. # handle the QUIETLY and REQUIRED arguments and set WGET_FOUND to TRUE if
  12. # all listed variables are TRUE
  13. INCLUDE(FindPackageHandleStandardArgs)
  14. FIND_PACKAGE_HANDLE_STANDARD_ARGS(Wget DEFAULT_MSG WGET_EXECUTABLE)
  15. MARK_AS_ADVANCED( WGET_EXECUTABLE )
  16. # WGET option is deprecated.
  17. # use WGET_EXECUTABLE instead.
  18. SET (WGET ${WGET_EXECUTABLE} )