From 56835cf821ee399d01f9d0cb2dd9b1d11446b23e Mon Sep 17 00:00:00 2001 From: Robert Osfield Date: Thu, 12 Dec 2019 13:25:44 +0000 Subject: [PATCH] Fix linking with Xinerama --- src/osgViewer/CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/osgViewer/CMakeLists.txt b/src/osgViewer/CMakeLists.txt index 2fa7cfc95..b43042f0e 100644 --- a/src/osgViewer/CMakeLists.txt +++ b/src/osgViewer/CMakeLists.txt @@ -210,7 +210,7 @@ ELSEIF(${OSG_WINDOWING_SYSTEM} STREQUAL "X11") IF(OSGVIEWER_USE_XINERAMA) ADD_DEFINITIONS(-DOSGVIEWER_USE_XINERAMA) 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() # X11 on Apple requires X11 library plus OpenGL linking hack on Leopard