Added automatic building of plugins as static when dynamic build is switch off.

This commit is contained in:
Robert Osfield 2007-05-23 19:25:54 +00:00
parent 908da298bb
commit 97039e9ae3

View File

@ -115,7 +115,11 @@ MACRO(SETUP_PLUGIN PLUGIN_NAME)
# here we use the command to generate the library
ADD_LIBRARY(${TARGET_TARGETNAME} MODULE ${TARGET_SRC} ${TARGET_H})
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)
#not sure if needed, but for plugins only msvc need the d suffix
IF(NOT MSVC)