FindCygwin.cmake 955 Bytes
Newer Older
1 2 3
#.rst:
# FindCygwin
# ----------
Sebastien Barre's avatar
Sebastien Barre committed
4
#
5
# this module looks for Cygwin
Sebastien Barre's avatar
Sebastien Barre committed
6

7 8 9 10 11 12 13 14 15 16
#=============================================================================
# Copyright 2001-2009 Kitware, Inc.
#
# Distributed under the OSI-approved BSD License (the "License");
# see accompanying file Copyright.txt for details.
#
# This software is distributed WITHOUT ANY WARRANTY; without even the
# implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
# See the License for more information.
#=============================================================================
17
# (To distribute this file outside of CMake, substitute the full
18 19
#  License text for the above reference.)

20 21
if (WIN32)
  find_path(CYGWIN_INSTALL_PATH
22
    cygwin.bat
23 24
    "C:/Cygwin"
    "[HKEY_LOCAL_MACHINE\\SOFTWARE\\Cygwin\\setup;rootdir]"
25 26 27
    "[HKEY_LOCAL_MACHINE\\SOFTWARE\\Cygnus Solutions\\Cygwin\\mounts v2\\/;native]"
  )

28
  mark_as_advanced(
29 30
    CYGWIN_INSTALL_PATH
  )
31
endif ()