cmake/Modules/FindCygwin.cmake

22 lines
573 B
CMake
Raw Normal View History

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
# ----------
#
2014-08-03 19:52:23 +02:00
# this module looks for Cygwin
2013-03-16 19:13:01 +02:00
if (WIN32)
2017-07-20 19:35:53 +02:00
find_program(CYGWIN_INSTALL_PATH
cygwin.bat
2010-11-13 01:00:53 +02:00
"C:/Cygwin"
"[HKEY_LOCAL_MACHINE\\SOFTWARE\\Cygwin\\setup;rootdir]"
"[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(
CYGWIN_INSTALL_PATH
)
2013-03-16 19:13:01 +02:00
endif ()