From 66ff4d8d8ed4e30c42d8db5435fb0d744e9e6644 Mon Sep 17 00:00:00 2001 From: fuzzard Date: Tue, 31 Aug 2021 09:17:42 +1000 Subject: [osx][windowing] split opengl specific inclusions to OPENGL_FOUND --- xbmc/windowing/osx/CMakeLists.txt | 7 +++++-- 1 file 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) -- cgit v1.2.3