summaryrefslogtreecommitdiffstats
path: root/Modules/FindCygwin.cmake
blob: c93c7f216f4040b713385361850e0f23782453b9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
# 
# this module looks for Cygwin and some usual commands
#

FIND_PATH(CYGWIN_INSTALL_PATH
  cygwin.bat
  "C:/Cygwin" 
  "[HKEY_LOCAL_MACHINE\\SOFTWARE\\Cygnus Solutions\\Cygwin\\mounts v2\\/;native]"
)

FIND_PROGRAM(GZIP
   gzip
   ${CYGWIN_INSTALL_PATH}/bin
)

FIND_PROGRAM(MV
   mv
   ${CYGWIN_INSTALL_PATH}/bin
)

FIND_PROGRAM(RM
   rm
   ${CYGWIN_INSTALL_PATH}/bin
)

FIND_PROGRAM(TAR
   NAMES 
   tar 
   gtar
   PATH
   ${CYGWIN_INSTALL_PATH}/bin
)