From b233174133b74b4581a6b5e2feb506eb05fd6c2a Mon Sep 17 00:00:00 2001 From: Robert Osfield Date: Wed, 8 Apr 2009 13:40:40 +0000 Subject: [PATCH] From Eric Sokolowsky,"libosgViewerd.so was not being built properly because it was being linked with system libraries using LINK_INTERNAL instead of LINK_EXTERNAL. This caused it to try to link with libXrandrd instead of libXrandr, which failed. Attached is the fixed CMakeLists.txt." --- src/osgViewer/CMakeLists.txt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/osgViewer/CMakeLists.txt b/src/osgViewer/CMakeLists.txt index 073e94b24..349e94a03 100644 --- a/src/osgViewer/CMakeLists.txt +++ b/src/osgViewer/CMakeLists.txt @@ -163,9 +163,10 @@ LINK_INTERNAL(${LIB_NAME} osgUtil osg OpenThreads - ${LIB_EXTRA_LIBS} ) +LINK_EXTERNAL(${LIB_NAME} ${LIB_EXTRA_LIBS}) + LINK_CORELIB_DEFAULT(${LIB_NAME}) IF(MINGW OR CYGWIN)