aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--xbmc/windowing/osx/CMakeLists.txt7
1 files changed, 5 insertions, 2 deletions
diff --git a/xbmc/windowing/osx/CMakeLists.txt b/xbmc/windowing/osx/CMakeLists.txt
index ebc7755aba..bae8f6e231 100644
--- a/xbmc/windowing/osx/CMakeLists.txt
+++ b/xbmc/windowing/osx/CMakeLists.txt
@@ -3,14 +3,17 @@ set(SOURCES CocoaDPMSSupport.cpp
WinEventsOSX.mm
WinEventsSDL.cpp
WinSystemOSX.mm
- WinSystemOSXGL.mm
VideoSyncOsx.mm)
set(HEADERS CocoaDPMSSupport.h
OSScreenSaverOSX.h
WinEventsOSX.h
WinEventsSDL.h
WinSystemOSX.h
- WinSystemOSXGL.h
VideoSyncOsx.h)
+if(OPENGL_FOUND)
+ list(APPEND SOURCES WinSystemOSXGL.mm)
+ list(APPEND HEADERS WinSystemOSXGL.h)
+endif()
+
core_add_library(windowing_osx)