@ -27,9 +27,12 @@ foreach(_library ${OSGPlugins_FIND_COMPONENTS})
string ( TOUPPER ${ _library } _library_uc )
string ( TOUPPER ${ _library } _library_uc )
set ( _component OSGPlugins_ ${ _library } )
set ( _component OSGPlugins_ ${ _library } )
set ( ${ _library_uc } _DIR ${ OSGPlugins_LIB_DIR } ) # t o h e l p f u n c t i o n o s g _ f i n d _ l i b r a r y
# O n s o m e s y s t e m s , n o t a b l y D e b i a n a n d U b u n t u , t h e O S G p l u g i n s d o n o t h a v e
# t h e u s u a l " l i b " p r e f i x . W e t e m p o r a r i l y a d d t h e e m p t y s t r i n g t o t h e l i s t
# o f p r e f i x e s C M a k e s e a r c h e s for ( via osg_find_library ) t o s u p p o r t t h e s e s y s t e m s .
set ( _saved_lib_prefix ${ CMAKE_FIND_LIBRARY_PREFIXES } ) # s a v e C M A K E _ F I N D _ L I B R A R Y _ P R E F I X E S
set ( _saved_lib_prefix ${ CMAKE_FIND_LIBRARY_PREFIXES } ) # s a v e C M A K E _ F I N D _ L I B R A R Y _ P R E F I X E S
set ( CMAKE_FIND_LIBRARY_PREFIXES "" ) # s e a r c h l i b r a r i e s w i t h n o p r e f i x
list ( APPEND CMAKE_FIND_LIBRARY_PREFIXES "" ) # s e a r c h l i b r a r i e s w i t h n o p r e f i x
set ( ${ _library_uc } _DIR ${ OSGPlugins_LIB_DIR } ) # t o h e l p f u n c t i o n o s g _ f i n d _ l i b r a r y
osg_find_library ( ${ _library_uc } ${ _library } ) # f i n d i t i n t o $ { _ l i b r a r y _ u c } _ L I B R A R I E S
osg_find_library ( ${ _library_uc } ${ _library } ) # f i n d i t i n t o $ { _ l i b r a r y _ u c } _ L I B R A R I E S
set ( CMAKE_FIND_LIBRARY_PREFIXES ${ _saved_lib_prefix } ) # r e s t o r e p r e f i x
set ( CMAKE_FIND_LIBRARY_PREFIXES ${ _saved_lib_prefix } ) # r e s t o r e p r e f i x