From 51a9e63c5583efbe3ce0810534f18ff795de781b Mon Sep 17 00:00:00 2001 From: Robert Osfield Date: Tue, 24 May 2011 13:05:44 +0000 Subject: [PATCH] From Olaf Flebbe, "build out-of-the box on MacOSX. The default windowing system is carbon and it needs the AGL OpenGL Windowing binding framework, which is missing. osgViewer does not link therefore. Cocoa does not use AGL. The fix adds the AGL Framework to the Carbon link line for osgViewer" --- src/osgViewer/CMakeLists.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/src/osgViewer/CMakeLists.txt b/src/osgViewer/CMakeLists.txt index 76d323525..1c70e41e8 100644 --- a/src/osgViewer/CMakeLists.txt +++ b/src/osgViewer/CMakeLists.txt @@ -135,6 +135,7 @@ ELSE() ) SET(LIB_EXTRA_LIBS ${COCOA_LIBRARY} ${LIB_EXTRA_LIBS}) + SET(LIB_EXTRA_LIBS ${LIB_EXTRA_LIBS} "-framework AGL") ELSEIF(${OSG_WINDOWING_SYSTEM} STREQUAL "IOS")