MantisBT - CMake
View Issue Details
0010951CMakeModulespublic2010-07-08 07:482010-09-10 00:08
Fabrice Aeschbacher 
Kovarththanan Rajaratnam 
normalminorhave not tried
closedfixed 
CMake-2-8 
CMake 2.8.3CMake 2.8.3 
0010951: FindCygwin.cmake: new registry key for Cygwin Installation
FindCygwin.cmake tries to find Cygwin installation as follows:

  FIND_PATH(CYGWIN_INSTALL_PATH
   cygwin.bat
    "C:/Cygwin"
    "[HKEY_LOCAL_MACHINE\\SOFTWARE\\Cygnus Solutions\\Cygwin\\mounts v2\\/;native]"
  )

Unfortunately, recent versions of Cygwin do not install this registry
key anymore, but this one:

   [HKEY_LOCAL_MACHINE\SOFTWARE\Cygwin\setup]
   "rootdir"="D:\\cygwin"

Patch is trivial:


--- FindCygwin.cmake.bak 2010-07-08 13:45:15.637844400 +0200
+++ FindCygwin.cmake 2010-07-08 13:46:49.105398000 +0200
@@ -18,6 +18,7 @@
   FIND_PATH(CYGWIN_INSTALL_PATH
     cygwin.bat
     "C:/Cygwin"
+ "[HKEY_LOCAL_MACHINE\\SOFTWARE\\Cygwin\\setup;rootdir]"
     "[HKEY_LOCAL_MACHINE\\SOFTWARE\\Cygnus Solutions\\Cygwin\\mounts v2\\/;native]"
   )
No tags attached.
Issue History
2010-07-08 07:48Fabrice AeschbacherNew Issue
2010-08-03 12:18Kovarththanan RajaratnamStatusnew => assigned
2010-08-03 12:18Kovarththanan RajaratnamAssigned To => Kovarththanan Rajaratnam
2010-08-03 12:18Kovarththanan RajaratnamCategoryCMake => Modules
2010-08-04 00:47Kovarththanan RajaratnamNote Added: 0021622
2010-08-04 00:47Kovarththanan RajaratnamStatusassigned => closed
2010-08-04 00:47Kovarththanan RajaratnamResolutionopen => fixed
2010-08-04 00:47Kovarththanan RajaratnamFixed in Version => CMake-2-8
2010-09-10 00:08David ColeFixed in VersionCMake-2-8 => CMake 2.8.3
2010-09-10 00:08David ColeTarget Version => CMake 2.8.3

Notes
(0021622)
Kovarththanan Rajaratnam   
2010-08-04 00:47   
Thanks for the patch.