[CMake] Get Windows Registry Key!!!! Doesn't work!!!

Berardino la Torre berardino.latorre at hotmail.com
Thu Aug 9 05:14:08 EDT 2007


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/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://public.kitware.com/pipermail/cmake/attachments/20070809/fb45b6a0/attachment.htm


More information about the CMake mailing list