FindCygwin.cmake 929 B

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