diff options
Diffstat (limited to 'Modules/FindWget.cmake')
-rw-r--r-- | Modules/FindWget.cmake | 19 |
1 files changed, 16 insertions, 3 deletions
diff --git a/Modules/FindWget.cmake b/Modules/FindWget.cmake index bd14eeb..5a2110c 100644 --- a/Modules/FindWget.cmake +++ b/Modules/FindWget.cmake @@ -2,6 +2,19 @@ # this module looks for wget # -FIND_PROGRAM(WGET - wget -) +INCLUDE(${CMAKE_ROOT}/Modules/FindCygwin.cmake) + +IF (CYGWIN_INSTALL_PATH) + + FIND_PROGRAM(WGET + wget + ${CYGWIN_INSTALL_PATH}/bin + ) + +ELSE (CYGWIN_INSTALL_PATH) + + FIND_PROGRAM(WGET + wget + ) + +ENDIF (CYGWIN_INSTALL_PATH) |