Hi Eric,
> -----Original Message----- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf Of Eric Noulard > Sent: Wednesday, May 07, 2008 3:38 PM > To: CMake ML > Subject: [CMake] How to read content of a registry entry on WIN32? > > I want to use the content of a regsitry entry > > HKEY_LOCAL_MACHINE\SOFTWARE\GnuWin32/InstallPath > > in order to use it in a FIND_PROGRAM , PATHS argument? > > find_program(LEX_PROGRAM > NAMES flex lex > PATHS > "[HKEY_LOCAL_MACHINE\\SOFTWARE\\GnuWin32\\InstallPath]/bin" > NO_DEFAULT_PATH > DOC "A lex-compatible lexer generator") > > but this does not work? > > How can I do that? I just do that and it works for me. FIND_PROGRAM(FLEX flex [HKEY_LOCAL_MACHINE\\SOFTWARE\\GnuWin32;InstallPath]\\bin) Greetings Alexander ---------------------------------------------------------------- Please note: This e-mail may contain confidential information intended solely for the addressee. If you have received this e-mail in error, please do not disclose it to anyone, notify the sender promptly, and delete the message from your system. Thank you.
_______________________________________________ CMake mailing list CMake@cmake.org http://www.cmake.org/mailman/listinfo/cmake