[CMake] Read Windows Registry value
elizabeta petreska
elizabeta.petreska at gmail.com
Mon Feb 9 10:51:43 EST 2009
Still not working.I am getting the following :
MATLAB_ROOT_PATH =
[HKEY_LOCAL_MACHINE\SOFTWARE\MathWorks\MATLAB\7.6;MATLABROOT]
On Mon, Feb 9, 2009 at 4:28 PM, Eric Noulard <eric.noulard at gmail.com> wrote:
> 2009/2/9 elizabeta petreska <elizabeta.petreska at gmail.com>:
> > Hello
> > I 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})
>
> I don't think you need the GET_FILENAME_COMPONENT.
> Would yuo try:
>
> SET(MATLAB_ROOT_PATH
> [HKEY_LOCAL_MACHINE\\SOFTWARE\\MathWorks\\MATLAB\\7.0;MATLABROOT])
> MESSAGE("MATLAB_ROOT_PATH = ${MATLAB_ROOT_PATH}")
>
>
> --
> Erk
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.cmake.org/pipermail/cmake/attachments/20090209/e9649365/attachment.htm>
More information about the CMake
mailing list