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
# 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 for common setup of core libraries: it links OPENGL_LIBRARIES in undifferentiated mode
#######################################################################################################
MACRO(LINK_CORELIB_DEFAULT CORELIB_NAME)
LINK_EXTERNAL(${CORELIB_NAME} ${OPENGL_LIBRARIES})
LINK_WITH_VARIABLES(${CORELIB_NAME} OPENTHREADS_LIBRARY)
ENDMACRO(LINK_CORELIB_DEFAULT CORELIB_NAME)

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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