It looks like you are missing a ";" before InstallPath. The ";" delimits the key name and the value name in this syntax...<br><br><br><div class="gmail_quote">On Wed, May 7, 2008 at 11:42 AM, Alan W. Irwin <<a href="mailto:irwin@beluga.phys.uvic.ca">irwin@beluga.phys.uvic.ca</a>> 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="Ih2E3d">On 2008-05-07 15:37+0200 Eric Noulard wrote:<br>
<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
I want to use the content of a regsitry entry<br>
<br>
HKEY_LOCAL_MACHINE\SOFTWARE\GnuWin32/InstallPath<br>
<br>
in order to use it in a FIND_PROGRAM , PATHS argument?<br>
<br>
find_program(LEX_PROGRAM<br>
NAMES flex lex<br>
PATHS<br>
"[HKEY_LOCAL_MACHINE\\SOFTWARE\\GnuWin32\\InstallPath]/bin"<br>
NO_DEFAULT_PATH<br>
DOC "A lex-compatible lexer generator")<br>
<br>
but this does not work?<br>
<br>
How can I do that?<br>
</blockquote>
<br></div>
There are a lot of examples of using HKEY_LOCAL_MACHINE in the CMake<br>
modules. From studying those (without any knowledge of the windows<br>
registry) I cannot see what is wrong with the above, but maybe you will have<br>
better luck spotting the problem given all the (presumably) working<br>
examples.<br>
<br>
Alan<br>
__________________________<br>
Alan W. Irwin<br>
<br>
Astronomical research affiliation with Department of Physics and Astronomy,<br>
University of Victoria (<a href="http://astrowww.phys.uvic.ca" target="_blank">astrowww.phys.uvic.ca</a>).<br>
<br>
Programming affiliations with the FreeEOS equation-of-state implementation<br>
for stellar interiors (<a href="http://freeeos.sf.net" target="_blank">freeeos.sf.net</a>); PLplot scientific plotting software<br>
package (<a href="http://plplot.org" target="_blank">plplot.org</a>); the libLASi project (<a href="http://unifont.org/lasi" target="_blank">unifont.org/lasi</a>); the Loads of<br>
Linux Links project (<a href="http://loll.sf.net" target="_blank">loll.sf.net</a>); and the Linux Brochure Project<br>
(<a href="http://lbproject.sf.net" target="_blank">lbproject.sf.net</a>).<br>
__________________________<br>
<br>
Linux-powered Science<br>
__________________________<div><div></div><div class="Wj3C7c"><br>
_______________________________________________<br>
CMake mailing list<br>
<a href="mailto:CMake@cmake.org" target="_blank">CMake@cmake.org</a><br>
<a href="http://www.cmake.org/mailman/listinfo/cmake" target="_blank">http://www.cmake.org/mailman/listinfo/cmake</a><br>
</div></div></blockquote></div><br>