summaryrefslogtreecommitdiffstats
path: root/Modules/FindWget.cmake
diff options
context:
space:
mode:
authorSebastien Barre <sebastien.barre@kitware.com>2001-11-02 21:44:00 (GMT)
committerSebastien Barre <sebastien.barre@kitware.com>2001-11-02 21:44:00 (GMT)
commit3714d9419c3f90a753bb7e96c9260b674f486916 (patch)
tree3f5ad75c44338e22e5f7ee1754f5c506e11cdd6f /Modules/FindWget.cmake
parentbc673070bc5f5fccdf404fd687ee57c9bb6f0684 (diff)
downloadCMake-3714d9419c3f90a753bb7e96c9260b674f486916.zip
CMake-3714d9419c3f90a753bb7e96c9260b674f486916.tar.gz
CMake-3714d9419c3f90a753bb7e96c9260b674f486916.tar.bz2
Move usual Unix commands to FindUnixCommands, use FingCygwin in other modules
Diffstat (limited to 'Modules/FindWget.cmake')
-rw-r--r--Modules/FindWget.cmake19
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)