summaryrefslogtreecommitdiffstats
path: root/Modules
diff options
context:
space:
mode:
authorSebastien Barre <sebastien.barre@kitware.com>2001-10-23 22:30:05 (GMT)
committerSebastien Barre <sebastien.barre@kitware.com>2001-10-23 22:30:05 (GMT)
commit4b7622b9aeda5f1937e13aaad6851234a1e60c92 (patch)
tree3c717cab4463073e8fd34778427871d7c986683f /Modules
parentcc731ac54853118438bee0f9f5d9df2287ec615b (diff)
downloadCMake-4b7622b9aeda5f1937e13aaad6851234a1e60c92.zip
CMake-4b7622b9aeda5f1937e13aaad6851234a1e60c92.tar.gz
CMake-4b7622b9aeda5f1937e13aaad6851234a1e60c92.tar.bz2
Cygwin mod
Diffstat (limited to 'Modules')
-rw-r--r--Modules/FindCygwin.cmake19
1 files changed, 19 insertions, 0 deletions
diff --git a/Modules/FindCygwin.cmake b/Modules/FindCygwin.cmake
new file mode 100644
index 0000000..f63618c
--- /dev/null
+++ b/Modules/FindCygwin.cmake
@@ -0,0 +1,19 @@
+#
+# 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(RM
+ rm
+ ${CYGWIN_INSTALL_PATH}/bin
+)
+
+FIND_PROGRAM(MV
+ mv
+ ${CYGWIN_INSTALL_PATH}/bin
+)