[CMake] Windows registry subtree?
Pau Garcia i Quiles
pgquiles at elpauer.org
Fri Oct 30 20:40:30 EDT 2009
Hello,
With GET_FILENAME_COMPONENT, I can get a key value:
GET_FILENAME_COMPONENT( QT4_ROOTDIR
[HKEY_LOCAL_MACHINE\SOFTWARE\Trolltech\Versions\4.5.2;InstallDir]
ABSOLUTE ))
Is it possible to get the keys in a subtree (i. e. all the registry
tree from a given folder)? Something like this:
GET_FILENAME_COMPONENT( QT4_VERSIONS
[HKEY_LOCAL_MACHINE\SOFTWARE\Trolltech\Versions;*] ABSOLUTE ))
Then get this list:
HKEY_LOCAL_MACHINE\Software\Trolltech\Versions;HKEY_LOCAL_MACHINE\Software\Trolltech\Versions\4.5.2;HKEY_LOCAL_MACHINE\Software\Trolltech\Versions\4.5.2\InstallDir;HKEY_LOCAL_MACHINE\Software\Trolltech\Versions\4.6.0;HKEY_LOCAL_MACHINE\Software\Trolltech\Versions\4.6.0\InstallDir
I. e. the result of invoking "reg query
HKLM\Software\Trolltech\Versions /s" but only the keys, not the
results.
--
Pau Garcia i Quiles
http://www.elpauer.org
(Due to my workload, I may need 10 days to answer)
More information about the CMake
mailing list