[CMake] Windows registry
Berardino la Torre
berardino.latorre at hotmail.com
Wed Aug 1 08:54:22 EDT 2007
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 then using the variable FBXSDK_ROOT_PATH to setup the
include and lib directories.
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 :
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 ?
thank you,
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/20070801/e3255d79/attachment.html
More information about the CMake
mailing list