aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorfuzzard <fuzzard@kodi.tv>2021-08-31 09:17:42 +1000
committerfuzzard <fuzzard@kodi.tv>2021-09-01 11:06:46 +1000
commit66ff4d8d8ed4e30c42d8db5435fb0d744e9e6644 (patch)
tree63be67d500c46ccb613206eaff69c3aa3e223c5c
parentff313ec1a93b3c6bcded60bb5f50116e13bca4db (diff)
[osx][windowing] split opengl specific inclusions to OPENGL_FOUND
-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)