FindWget.cmake 887 B

1234567891011121314151617181920212223242526272829303132
  1. # Distributed under the OSI-approved BSD 3-Clause License. See accompanying
  2. # file Copyright.txt or https://cmake.org/licensing for details.
  3. #[=======================================================================[.rst:
  4. FindWget
  5. --------
  6. Find wget
  7. This module looks for wget. This module defines the following values:
  8. ::
  9. WGET_EXECUTABLE: the full path to the wget tool.
  10. WGET_FOUND: True if wget has been found.
  11. #]=======================================================================]
  12. include(${CMAKE_CURRENT_LIST_DIR}/FindCygwin.cmake)
  13. find_program(WGET_EXECUTABLE
  14. wget
  15. ${CYGWIN_INSTALL_PATH}/bin
  16. )
  17. include(${CMAKE_CURRENT_LIST_DIR}/FindPackageHandleStandardArgs.cmake)
  18. FIND_PACKAGE_HANDLE_STANDARD_ARGS(Wget DEFAULT_MSG WGET_EXECUTABLE)
  19. mark_as_advanced( WGET_EXECUTABLE )
  20. # WGET option is deprecated.
  21. # use WGET_EXECUTABLE instead.
  22. set (WGET ${WGET_EXECUTABLE})