diff options
author | fuzzard <fuzzard@kodi.tv> | 2021-08-31 09:36:14 +1000 |
---|---|---|
committer | fuzzard <fuzzard@kodi.tv> | 2021-09-01 19:41:33 +1000 |
commit | 1f26d2a4ecc5a3d18b3770b794f9ed2641f3ebde (patch) | |
tree | 576ad6ff4ab1e26becc9de624e987d18f5822faa /cmake/scripts/darwin_embedded | |
parent | 694a1522c7fd9109a0f93905d2dd8edd6d10fe4b (diff) |
[cmake][darwinembedded] move GL warning define to OPENGLES_FOUND check
Diffstat (limited to 'cmake/scripts/darwin_embedded')
-rw-r--r-- | cmake/scripts/darwin_embedded/ArchSetup.cmake | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/cmake/scripts/darwin_embedded/ArchSetup.cmake b/cmake/scripts/darwin_embedded/ArchSetup.cmake index 01f535e9bb..04cc4ef3c7 100644 --- a/cmake/scripts/darwin_embedded/ArchSetup.cmake +++ b/cmake/scripts/darwin_embedded/ArchSetup.cmake @@ -12,8 +12,7 @@ else() list(APPEND ARCH_DEFINES -DTARGET_DARWIN_IOS) endif() set(SYSTEM_DEFINES -D_REENTRANT -D_FILE_OFFSET_BITS=64 -D_LARGEFILE64_SOURCE - -D__STDC_CONSTANT_MACROS -DHAS_IOS_NETWORK -DHAS_ZEROCONF - -DGL_DO_NOT_WARN_IF_MULTI_GL_VERSION_HEADERS_INCLUDED) + -D__STDC_CONSTANT_MACROS -DHAS_IOS_NETWORK -DHAS_ZEROCONF) set(PLATFORM_DIR platform/darwin) set(PLATFORMDEFS_DIR platform/posix) set(CMAKE_SYSTEM_NAME Darwin) @@ -32,6 +31,7 @@ endif() if(NOT APP_RENDER_SYSTEM OR APP_RENDER_SYSTEM STREQUAL "gles") set(PLATFORM_REQUIRED_DEPS OpenGLES) set(APP_RENDER_SYSTEM gles) + list(APPEND SYSTEM_DEFINES -DGL_DO_NOT_WARN_IF_MULTI_GL_VERSION_HEADERS_INCLUDED) else() message(SEND_ERROR "Currently only OpenGLES rendering is supported. Please set APP_RENDER_SYSTEM to \"gles\"") endif() |