Hi Manu,
On 5/23/07, Emmanuel Roche <[EMAIL PROTECTED]> wrote:
And changing this 'MODULE' variable tout "STATIC" leads to the construction
of static plugin libs ! bingo !
I guess someone should include somewhere the test done for the core libs to
decide here if we should have "SHARED" or "STATIC"... what was this 'MODULE'
used for in fact ??
The plugin macro in OpenSceneGraph/CMakeModules/OsgMacroUtils.cmake,
and the macro specifically is:
MACRO(SETUP_PLUGIN PLUGIN_NAME)
...
It should be easy to put a conditional, looking at the compile of core
libs, it looks like it should be possible to use:
IF (DYNAMIC_OPENSCENEGRAPH)
ADD_LIBRARY(${TARGET_TARGETNAME} MODULE ${TARGET_SRC} ${TARGET_H})
ELSE (DYNAMIC_OPENSCENEGRAPH)
ADD_LIBRARY(${TARGET_TARGETNAME} STATIC ${TARGET_SRC} ${TARGET_H})
ENDIF(DYNAMIC_OPENSCENEGRAPH)
I'll do a clean dynamic build, then try out the static build too.
Robert.
_______________________________________________
osg-users mailing list
[email protected]
http://openscenegraph.net/mailman/listinfo/osg-users
http://www.openscenegraph.org/