[CMake] How to read content of a registry entry on WIN32?
Alexander.Camek at elektrobit.com
Alexander.Camek at elektrobit.com
Wed May 7 10:23:19 EDT 2008
Hi Eric,
> -----Original Message-----
> From: cmake-bounces at cmake.org
> [mailto:cmake-bounces at cmake.org] 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.
More information about the CMake
mailing list