Celil Rufat wrote:
On a Windows 7 machine I cannot read any registry values that contain a semicolon.

For example if you have 7-zip, running the following

SET(MYPATH  [HKEY_LOCAL_MACHINE\\SOFTWARE\\7-Zip;Path])
MESSAGE("MYPATH = ${MYPATH}")

results in

MYPATH = [HKEY_LOCAL_MACHINE\SOFTWARE\7-Zip;Path]

instead of the actual path as per the following thread

http://www.mail-archive.com/[email protected]/msg19014.html

I think registry paths that contain ";" are broken on Windows 7. Can somebody confirm this? Is there any work-around?

You want:

get_filename_component(MYPATH "[HKEY_LOCAL_MACHINE\\SOFTWARE\\7-Zip;Path]" PATH)

The message command does not look up registry values.

-Bill

_______________________________________________
Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake

Reply via email to