Just tried your files Robert and it works great, thanks !

On Mon, Sep 22, 2008 at 1:48 PM, Robert Osfield <[EMAIL PROTECTED]>wrote:

> Hi Guys,
>
> I have just tried some C macro tricks to move the quotes into the .cpp
> and out of the CMakelists.txt:
>
> static void appendInstallationLibraryFilePaths(osgDB::FilePathList&
> filepath)
> {
> #ifdef OSG_DEFAULT_LIBRARY_PATH
>
>    #define _ADDQUOTES(def) #def
>    #define ADDQUOTES(def) _ADDQUOTES(def)
>
>    // Append the install prefix path to the library search path if
> configured
>    filepath.push_back(ADDQUOTES(OSG_DEFAULT_LIBRARY_PATH));
> #endif
> }
>
> And removed the quotes from the OpenSceneGraph/CMakeLists.txt.
>
> # Add a default plugin search path component
> IF   (DYNAMIC_OPENSCENEGRAPH)
>
>  
> ADD_DEFINITIONS(-DOSG_DEFAULT_LIBRARY_PATH=${CMAKE_INSTALL_PREFIX}/lib${LIB_POSTFIX}/${OSG_PLUGINS})
> ENDIF(DYNAMIC_OPENSCENEGRAPH)
>
>
> The changed files are attached, could you try these out? If this works
> I'll check it in.
>
> Robert.
>
> _______________________________________________
> osg-submissions mailing list
> [email protected]
>
> http://lists.openscenegraph.org/listinfo.cgi/osg-submissions-openscenegraph.org
>
>


-- 
Serge Lages
http://www.tharsis-software.com
_______________________________________________
osg-submissions mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-submissions-openscenegraph.org

Reply via email to