2009/2/9 elizabeta petreska <[email protected]>:
> 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
_______________________________________________
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