Bill Hoffman wrote:
You want:
get_filename_component(MYPATH
"[HKEY_LOCAL_MACHINE\\SOFTWARE\\7-Zip;Path]" PATH)
The PATH option will strip off the last component of the path after lookup.
Use ABSOLUTE instead:
get_filename_component(MYPATH
"[HKEY_LOCAL_MACHINE\\SOFTWARE\\7-Zip;Path]"
ABSOLUTE)
-Brad
_______________________________________________
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