Moved the OpenThreads link locally to each lib

This commit is contained in:
Robert Osfield 2007-05-03 10:06:38 +00:00
parent e0abc970ae
commit 3809d0dad0
12 changed files with 14 additions and 8 deletions

View File

@ -34,14 +34,11 @@ ENDMACRO(LINK_EXTERNAL TRGTNAME)
####################################################################################################### #######################################################################################################
# macro for common setup of core libraries: it links OPENGL_LIBRARIES in undifferentiated mode and # macro for common setup of core libraries: it links OPENGL_LIBRARIES in undifferentiated mode
# OPENTHREADS_LIBRARY as Differentiated, so if existe the variable OPENTHREADS_LIBRARY_DEBUG, it uses
# the content of this library for linking when in debugging
####################################################################################################### #######################################################################################################
MACRO(LINK_CORELIB_DEFAULT CORELIB_NAME) MACRO(LINK_CORELIB_DEFAULT CORELIB_NAME)
LINK_EXTERNAL(${CORELIB_NAME} ${OPENGL_LIBRARIES}) LINK_EXTERNAL(${CORELIB_NAME} ${OPENGL_LIBRARIES})
LINK_WITH_VARIABLES(${CORELIB_NAME} OPENTHREADS_LIBRARY)
ENDMACRO(LINK_CORELIB_DEFAULT CORELIB_NAME) ENDMACRO(LINK_CORELIB_DEFAULT CORELIB_NAME)

View File

@ -75,6 +75,7 @@ ENDIF(VRML_FOUND)
LINK_INTERNAL(${LIB_NAME} LINK_INTERNAL(${LIB_NAME}
osg osg
OpenThreads
) )
LINK_EXTERNAL(${LIB_NAME} ${OSGDB_PLATFORM_SPECIFIC_LIBRARIES} ) LINK_EXTERNAL(${LIB_NAME} ${OSGDB_PLATFORM_SPECIFIC_LIBRARIES} )
LINK_CORELIB_DEFAULT(${LIB_NAME}) LINK_CORELIB_DEFAULT(${LIB_NAME})

View File

@ -41,6 +41,7 @@ LINK_INTERNAL(${LIB_NAME}
osgUtil osgUtil
osgDB osgDB
osg osg
OpenThreads
) )
LINK_CORELIB_DEFAULT(${LIB_NAME}) LINK_CORELIB_DEFAULT(${LIB_NAME})

View File

@ -48,11 +48,10 @@ ADD_LIBRARY(${LIB_NAME}
Version.cpp Version.cpp
) )
TARGET_LINK_LIBRARIES(${LIB_NAME} LINK_INTERNAL(${LIB_NAME}
osgUtil osgDB
osg osg
${OPENTHREADS_LIBRARY} OpenThreads
${OPENGL_LIBRARIES}
) )
INCLUDE(ModuleInstall OPTIONAL) INCLUDE(ModuleInstall OPTIONAL)

View File

@ -61,6 +61,7 @@ LINK_INTERNAL(${LIB_NAME}
osgGA osgGA
osgUtil osgUtil
osg osg
OpenThreads
) )
LINK_CORELIB_DEFAULT(${LIB_NAME}) LINK_CORELIB_DEFAULT(${LIB_NAME})

View File

@ -80,6 +80,7 @@ LINK_INTERNAL(${LIB_NAME}
osgUtil osgUtil
osgDB osgDB
osg osg
OpenThreads
) )
LINK_CORELIB_DEFAULT(${LIB_NAME}) LINK_CORELIB_DEFAULT(${LIB_NAME})

View File

@ -37,6 +37,7 @@ LINK_INTERNAL(${LIB_NAME}
osgUtil osgUtil
osgDB osgDB
osg osg
OpenThreads
) )
LINK_CORELIB_DEFAULT(${LIB_NAME}) LINK_CORELIB_DEFAULT(${LIB_NAME})

View File

@ -67,6 +67,7 @@ LINK_INTERNAL(${LIB_NAME}
osgText osgText
osgUtil osgUtil
osg osg
OpenThreads
) )
LINK_CORELIB_DEFAULT(${LIB_NAME}) LINK_CORELIB_DEFAULT(${LIB_NAME})

View File

@ -32,6 +32,7 @@ LINK_INTERNAL(${LIB_NAME}
osgUtil osgUtil
osgDB osgDB
osg osg
OpenThreads
) )
LINK_CORELIB_DEFAULT(${LIB_NAME}) LINK_CORELIB_DEFAULT(${LIB_NAME})

View File

@ -32,6 +32,7 @@ ADD_LIBRARY(${LIB_NAME}
LINK_INTERNAL(${LIB_NAME} LINK_INTERNAL(${LIB_NAME}
osgDB osgDB
osg osg
OpenThreads
) )
LINK_CORELIB_DEFAULT(${LIB_NAME}) LINK_CORELIB_DEFAULT(${LIB_NAME})

View File

@ -82,6 +82,7 @@ ADD_LIBRARY(${LIB_NAME}
LINK_INTERNAL(${LIB_NAME} LINK_INTERNAL(${LIB_NAME}
osg osg
OpenThreads
) )
LINK_CORELIB_DEFAULT(${LIB_NAME}) LINK_CORELIB_DEFAULT(${LIB_NAME})

View File

@ -77,6 +77,7 @@ LINK_INTERNAL(${LIB_NAME}
osgDB osgDB
osgUtil osgUtil
osg osg
OpenThreads
) )
LINK_CORELIB_DEFAULT(${LIB_NAME}) LINK_CORELIB_DEFAULT(${LIB_NAME})