FindCygwin.cmake 955 B

12345678910111213141516171819202122232425262728293031
  1. #.rst:
  2. # FindCygwin
  3. # ----------
  4. #
  5. # this module looks for Cygwin
  6. #=============================================================================
  7. # Copyright 2001-2009 Kitware, Inc.
  8. #
  9. # Distributed under the OSI-approved BSD License (the "License");
  10. # see accompanying file Copyright.txt for details.
  11. #
  12. # This software is distributed WITHOUT ANY WARRANTY; without even the
  13. # implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
  14. # See the License for more information.
  15. #=============================================================================
  16. # (To distribute this file outside of CMake, substitute the full
  17. # License text for the above reference.)
  18. if (WIN32)
  19. find_path(CYGWIN_INSTALL_PATH
  20. cygwin.bat
  21. "C:/Cygwin"
  22. "[HKEY_LOCAL_MACHINE\\SOFTWARE\\Cygwin\\setup;rootdir]"
  23. "[HKEY_LOCAL_MACHINE\\SOFTWARE\\Cygnus Solutions\\Cygwin\\mounts v2\\/;native]"
  24. )
  25. mark_as_advanced(
  26. CYGWIN_INSTALL_PATH
  27. )
  28. endif ()