Merge pull request #864 from AMDmi3/xinerama-lib

Fix linking with Xinerama
This commit is contained in:
OpenSceneGraph git repository 2019-12-12 13:17:27 +00:00 committed by GitHub
commit bb5620d926
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -232,7 +232,7 @@ ELSE()
IF(OSGVIEWER_USE_XINERAMA) IF(OSGVIEWER_USE_XINERAMA)
ADD_DEFINITIONS(-DOSGVIEWER_USE_XINERAMA) ADD_DEFINITIONS(-DOSGVIEWER_USE_XINERAMA)
SET(LIB_PRIVATE_HEADERS ${LIB_PRIVATE_HEADERS} ${XINERAMA_INCLUDE_DIRS} ) SET(LIB_PRIVATE_HEADERS ${LIB_PRIVATE_HEADERS} ${XINERAMA_INCLUDE_DIRS} )
SET(LIB_EXTRA_LIBS -lXinerama ${LIB_EXTRA_LIBS}) SET(LIB_EXTRA_LIBS ${X11_Xinerama_LIB} ${LIB_EXTRA_LIBS})
ENDIF() ENDIF()
# X11 on Apple requires X11 library plus OpenGL linking hack on Leopard # X11 on Apple requires X11 library plus OpenGL linking hack on Leopard