From ffe976659ee544fcbddec51aa90487031c9a2c11 Mon Sep 17 00:00:00 2001 From: Chris Ballinger Date: Wed, 22 Oct 2014 00:25:01 -0700 Subject: [PATCH] Fix OpenGL linker error on OS X --- CMakeLists.txt | 1 + Externals/wxWidgets3/CMakeLists.txt | 1 + 2 files changed, 2 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 3be03ca4f7..54b7160cf9 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -282,6 +282,7 @@ if(APPLE) find_library(QUICKTIME_LIBRARY QuickTime) find_library(WEBKIT_LIBRARY WebKit) find_library(FORCEFEEDBACK ForceFeedback) + find_library(OPENGL_LIBRARY OpenGL) endif() if(WIN32) diff --git a/Externals/wxWidgets3/CMakeLists.txt b/Externals/wxWidgets3/CMakeLists.txt index 5103dc2634..c72a0dd395 100644 --- a/Externals/wxWidgets3/CMakeLists.txt +++ b/Externals/wxWidgets3/CMakeLists.txt @@ -879,6 +879,7 @@ if(${CMAKE_SYSTEM_NAME} MATCHES "Darwin") ${COREFUND_LIBRARY} ${CORESERV_LIBRARY} ${IOK_LIBRARY} + ${OPENGL_LIBRARY} ${QUICKTIME_LIBRARY}) elseif(${CMAKE_SYSTEM_NAME} MATCHES "Linux") add_definitions(-D__WXGTK__)