summaryrefslogtreecommitdiffstats
path: root/Modules/FindCygwin.cmake
diff options
context:
space:
mode:
authorSebastien Barre <sebastien.barre@kitware.com>2001-12-04 15:55:17 (GMT)
committerSebastien Barre <sebastien.barre@kitware.com>2001-12-04 15:55:17 (GMT)
commitcb4f04c94e5815393e9b1d765588c23656149b4e (patch)
treee1586635e8c85d0e88faf7b42451f9d8f2de40ca /Modules/FindCygwin.cmake
parentf68e64e2d8488a57740cc5b2fb0f914a769c4e8e (diff)
downloadCMake-cb4f04c94e5815393e9b1d765588c23656149b4e.zip
CMake-cb4f04c94e5815393e9b1d765588c23656149b4e.tar.gz
CMake-cb4f04c94e5815393e9b1d765588c23656149b4e.tar.bz2
Remove unneeded test and code duplication. Add WIN32 test. Make all ADVANCED.
Diffstat (limited to 'Modules/FindCygwin.cmake')
-rw-r--r--Modules/FindCygwin.cmake16
1 files changed, 11 insertions, 5 deletions
diff --git a/Modules/FindCygwin.cmake b/Modules/FindCygwin.cmake
index 7c4f8b1..8fe326b 100644
--- a/Modules/FindCygwin.cmake
+++ b/Modules/FindCygwin.cmake
@@ -2,8 +2,14 @@
# this module looks for Cygwin
#
-FIND_PATH(CYGWIN_INSTALL_PATH
- cygwin.bat
- "C:/Cygwin"
- "[HKEY_LOCAL_MACHINE\\SOFTWARE\\Cygnus Solutions\\Cygwin\\mounts v2\\/;native]"
-)
+IF (WIN32)
+ FIND_PATH(CYGWIN_INSTALL_PATH
+ cygwin.bat
+ "C:/Cygwin"
+ "[HKEY_LOCAL_MACHINE\\SOFTWARE\\Cygnus Solutions\\Cygwin\\mounts v2\\/;native]"
+ )
+
+ MARK_AS_ADVANCED(
+ CYGWIN_INSTALL_PATH
+ )
+ENDIF (WIN32)