2016-10-30 18:24:19 +01:00
|
|
|
# Distributed under the OSI-approved BSD 3-Clause License. See accompanying
|
|
|
|
# file Copyright.txt or https://cmake.org/licensing for details.
|
|
|
|
|
2014-08-03 19:52:23 +02:00
|
|
|
#.rst:
|
|
|
|
# FindCygwin
|
|
|
|
# ----------
|
2008-10-12 18:41:06 +02:00
|
|
|
#
|
2014-08-03 19:52:23 +02:00
|
|
|
# this module looks for Cygwin
|
2008-10-12 18:41:06 +02:00
|
|
|
|
2013-03-16 19:13:01 +02:00
|
|
|
if (WIN32)
|
2017-07-20 19:35:53 +02:00
|
|
|
find_program(CYGWIN_INSTALL_PATH
|
2008-10-12 18:41:06 +02:00
|
|
|
cygwin.bat
|
2010-11-13 01:00:53 +02:00
|
|
|
"C:/Cygwin"
|
|
|
|
"[HKEY_LOCAL_MACHINE\\SOFTWARE\\Cygwin\\setup;rootdir]"
|
2008-10-12 18:41:06 +02:00
|
|
|
"[HKEY_LOCAL_MACHINE\\SOFTWARE\\Cygnus Solutions\\Cygwin\\mounts v2\\/;native]"
|
|
|
|
)
|
2017-07-20 19:35:53 +02:00
|
|
|
get_filename_component(CYGWIN_INSTALL_PATH "${CYGWIN_INSTALL_PATH}" DIRECTORY)
|
2013-03-16 19:13:01 +02:00
|
|
|
mark_as_advanced(
|
2008-10-12 18:41:06 +02:00
|
|
|
CYGWIN_INSTALL_PATH
|
|
|
|
)
|
2013-03-16 19:13:01 +02:00
|
|
|
endif ()
|