<div class="gmail_quote">On Fri, Mar 20, 2009 at 8:03 AM, Dancefire <span dir="ltr">&lt;<a href="mailto:dancefire@gmail.com">dancefire@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div class="gmail_quote"><div class="im">On Fri, Mar 20, 2009 at 10:52 PM, Philip Lowman <span dir="ltr">&lt;<a href="mailto:philip@yhbt.com" target="_blank">philip@yhbt.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">

<div class="gmail_quote"><div>On Fri, Mar 20, 2009 at 2:38 AM, Dancefire <span dir="ltr">&lt;<a href="mailto:dancefire@gmail.com" target="_blank">dancefire@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">


Hi, Philip,<br><br>I tested your script FindGTK2.cmake on my computer, I got some problems, but I fixed them. The problem is that I install gtkmm only for current user, so the path can not be found at [HKEY_LOCAL_MACHINE\\SOFTWARE\\gtkmm\\2.4;Path], so I add some lines for [HKEY_CURRENT_USER\\SOFTWARE\\gtkmm\\2.4;Path]. And one more suggestion, I don&#39;t know how, but if it is possible to use the environment variable &quot;GTKMM_BASEPATH&quot;, which contain the gtkmm installation base path and setup by installer, then it will more easily locate the gtkmm.</blockquote>


</div><div><br>Thanks for the patches.  I&#39;ll commit the module to CVS sometime this weekend with your improvements.  Do you think it would be better to put the HKEY_CURRENT_USER before HKEY_CURRENT_MACHINE to allow a user install to override the system install?<br>


</div></div></blockquote></div><div><br>Yeah, it would be better let HKCU override HKLM. If there is a difference, then the current user most likely intends to use its own installation.<br> </div><div class="im"><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">

<div class="gmail_quote"><div><br>It is possible to use environment variables to find stuff.  The syntax for this is $ENV{GTKMM_BASEPATH}.  I&#39;ll put this before all the registry keys.<br> </div></div></blockquote></div>
<div>
<br>That&#39;s great, thank you.</div></div></blockquote><div><br>If you could give the code I just checked into CVS a test that would be great.  I added version support, all of the aforementioned stuff, and cleaned things up a bit.  I also made it so calling the module with no COMPONENTS searches only for GTK since I believe this was suggested earlier (and not doing so would break CMake&#39;s dashboard).<br>
 <br><a href="http://www.cmake.org/cgi-bin/viewcvs.cgi/Modules/FindGTK2.cmake?root=CMake&amp;view=markup">http://www.cmake.org/cgi-bin/viewcvs.cgi/Modules/FindGTK2.cmake?root=CMake&amp;view=markup</a><br></div></div><br>-- <br>
Philip Lowman<br>