[CMake] How to read content of a registry entry on WIN32?

Eric Noulard eric.noulard at gmail.com
Wed May 7 09:37:43 EDT 2008


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?
-- 
Erk


More information about the CMake mailing list