[CMake] Read Windows Registry value
elizabeta petreska
elizabeta.petreska at gmail.com
Mon Feb 9 10:10:04 EST 2009
HelloI am trying to read MatlabRoot from Registry ,so I can use it in my
include and lib paths.
like this :
GET_FILENAME_COMPONENT(MATLAB_ROOT_PATH
[HKEY_LOCAL_MACHINE\\SOFTWARE\\MathWorks\\MATLAB\\7.0;MATLABROOT] ABSOLUTE)
message(${MATLAB_ROOT_PATH})
But the message only prints /registry.
Where is the mistake?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.cmake.org/pipermail/cmake/attachments/20090209/263e248a/attachment.htm>
More information about the CMake
mailing list