Quoting Berardino la Torre <[EMAIL PROTECTED]>:

The problem is you are not capturing the value at all.

For instance, this works:
GET_FILENAME_COMPONENT( CACHE_ROOTDIR [HKEY_LOCAL_MACHINE\\Software\\InterSystems\\Cache\\Configurations\\CACHE\\Directory;] ABSOLUTE )

In your case, you'd need to do something like this:
GET_FILENAME_COMPONENT(FBXSDK_ROOT_PATH [HKEY_LOCAL_MACHINE\\SOFTWARE\\FBX\\File SDK
2006.11.1;Install_Dir] ABSOLUTE CACHE)

Hi All,

I'm trying to read an installation path from the windows registry: SET(FBXSDK_ROOT_PATH [HKEY_LOCAL_MACHINE\\SOFTWARE\\FBX\\File SDK 2006.11.1;Install_Dir] CACHE PATH "FBX") and setup then the include and lib directories like : INCLUDE_DIRECTORIES(${FBXSDK_ROOT_PATH}/include)LINK_DIRECTORIES(${FBXSDK_ROOT_PATH}/lib) But nothing seems to happen. The variable FBXSDK_ROOT_PATH got just the value :[HKEY_LOCAL_MACHINE\\SOFTWARE\\FBX\\File SDK 2006.11.1;Install_Dir] like a simple string. I tried also using the syntax (using ".." ): SET(FBXSDK_ROOT_PATH "[HKEY_LOCAL_MACHINE\\SOFTWARE\\FBX\\File SDK 2006.11.1;Install_Dir]"CACHE PATH "FBX") but nothing has changed.

What's wrong with it ?
Ps :

I had a look in the cmake modules folder and found in FindJNI.cmake :

....
SET(JAVA_AWT_LIBRARY_DIRECTORIES "[HKEY_LOCAL_MACHINE\\SOFTWARE\\JavaSoft\\Java Development Kit\\1.4;JavaHome]/lib" "[HKEY_LOCAL_MACHINE\\SOFTWARE\\JavaSoft\\Java Development Kit\\1.3;JavaHome]/lib" $ENV{JAVA_HOME}/jre/lib/i386 $ENV{JAVA_HOME}/jre/lib/amd64 /usr/lib /usr/local/lib /usr/lib/java/jre/lib/i386 /usr/local/lib/java/jre/lib/i386 /usr/local/share/java/jre/lib/i386 /usr/lib/j2sdk1.4-sun/jre/lib/i386 /usr/lib/j2sdk1.5-sun/jre/lib/i386 /opt/sun-jdk-1.5.0.04/jre/lib/amd64 /usr/lib/java/jre/lib/amd64 /usr/local/lib/java/jre/lib/amd64 /usr/local/share/java/jre/lib/amd64 /usr/lib/j2sdk1.4-sun/jre/lib/amd64 /usr/lib/j2sdk1.5-sun/jre/lib/amd64 )
.....

I was wondering how it can works ....

Could anyone explain me in what I'm getting wrong ??? thanks, Bera
_________________________________________________________________
Express yourself instantly with MSN Messenger! Download today it's FREE!
http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/



--
Pau Garcia i Quiles
http://www.elpauer.org
(Due to my workload, I may need 10 days to answer)
_______________________________________________
CMake mailing list
[email protected]
http://www.cmake.org/mailman/listinfo/cmake

Reply via email to