Added automatic building of plugins as static when dynamic build is switch off.
This commit is contained in:
parent
908da298bb
commit
97039e9ae3
@ -114,8 +114,12 @@ MACRO(SETUP_PLUGIN PLUGIN_NAME)
|
|||||||
ENDIF(NOT TARGET_LABEL)
|
ENDIF(NOT TARGET_LABEL)
|
||||||
|
|
||||||
# here we use the command to generate the library
|
# 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
|
#not sure if needed, but for plugins only msvc need the d suffix
|
||||||
IF(NOT MSVC)
|
IF(NOT MSVC)
|
||||||
|
Loading…
Reference in New Issue
Block a user