Moved the OpenThreads link locally to each lib
This commit is contained in:
parent
e0abc970ae
commit
3809d0dad0
@ -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)
|
||||||
|
|
||||||
|
|
||||||
|
@ -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})
|
||||||
|
@ -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})
|
||||||
|
|
||||||
|
@ -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)
|
||||||
|
@ -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})
|
||||||
|
|
||||||
|
@ -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})
|
||||||
|
|
||||||
|
@ -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})
|
||||||
|
|
||||||
|
@ -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})
|
||||||
|
|
||||||
|
@ -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})
|
||||||
|
|
||||||
|
@ -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})
|
||||||
|
|
||||||
|
@ -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})
|
||||||
|
|
||||||
|
@ -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})
|
||||||
|
Loading…
Reference in New Issue
Block a user