Added automatic building of plugins as static when dynamic build is switch off.
This commit is contained in:
parent
908da298bb
commit
97039e9ae3
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user