Browse Source

examples: CMake: warn once only about macOS OpenGL deprecation

Otherwise compiling rlgl is too spammy. While at it remove
the now unneeded CheckIncludeFiles.
pull/832/head
Ahmad Fatoum 5 years ago
parent
commit
43bfb979e5
No known key found for this signature in database GPG Key ID: C3EAC3DE9321D59B
1 changed files with 4 additions and 1 deletions
  1. +4
    -1
      examples/CMakeLists.txt

+ 4
- 1
examples/CMakeLists.txt View File

@ -24,7 +24,10 @@ foreach(example_dir ${example_dirs})
list(APPEND example_resources ${resources}) list(APPEND example_resources ${resources})
endforeach() endforeach()
include(CheckIncludeFiles)
if (NOT CMAKE_SYSTEM STRLESS "Darwin-18.0.0")
add_definitions(-DGL_SILENCE_DEPRECATION)
MESSAGE(AUTHOR_WARNING "OpenGL is deprecated starting with macOS 10.14 (Mojave)!")
endif()
set(OUTPUT_EXT) set(OUTPUT_EXT)
list(REMOVE_ITEM example_sources ${CMAKE_CURRENT_SOURCE_DIR}/others/rlgl_standalone.c) list(REMOVE_ITEM example_sources ${CMAKE_CURRENT_SOURCE_DIR}/others/rlgl_standalone.c)

Loading…
Cancel
Save