<html>
<head>
<style>
P
{
margin:0px;
padding:0px
}
body
{
FONT-SIZE: 10pt;
FONT-FAMILY:Tahoma
}
</style>
</head>
<body>Trying to read an installation path from the windows registry:<BR>
&nbsp;<BR>
SET(FBXSDK_ROOT_PATH <BR>
[HKEY_LOCAL_MACHINE\\SOFTWARE\\FBX\\File SDK 2006.11.1;Install_Dir] <BR>
CACHE PATH "FBX")<BR>
&nbsp;<BR>
and then&nbsp;using the variable&nbsp;FBXSDK_ROOT_PATH to setup the<BR>
include and lib directories.<BR>
&nbsp;<BR>
INCLUDE_DIRECTORIES(<BR>
${FBXSDK_ROOT_PATH}/include<BR>)<BR>
LINK_DIRECTORIES(<BR>${FBXSDK_ROOT_PATH}/lib<BR>)<BR>
&nbsp;<BR>
But nothing seems to happen. The variable FBXSDK_ROOT_PATH got just the value :<BR>
[HKEY_LOCAL_MACHINE\\SOFTWARE\\FBX\\File SDK 2006.11.1;Install_Dir] like a simple string.<BR>
&nbsp;<BR>
I tried also using the syntax :<BR>
&nbsp;<BR>
SET(FBXSDK_ROOT_PATH <BR>
"[HKEY_LOCAL_MACHINE\\SOFTWARE\\FBX\\File SDK 2006.11.1;Install_Dir]"<BR>
CACHE PATH "FBX")<BR>
&nbsp;<BR>
but nothing has changed.<BR>
&nbsp;<BR>
What's wrong with it ?<BR>
&nbsp;<BR>
&nbsp;<BR>
thank you,<BR>
&nbsp;<BR>
Bera<BR><br /><hr />Hotmail to go? Get your Hotmail, news, sports and much more!   <a href='http://mobile.msn.com' target='_new'>Check out the New MSN Mobile</a></body>
</html>