summaryrefslogtreecommitdiffhomepage
path: root/examples/CMakeLists.txt
diff options
context:
space:
mode:
authorAhmad Fatoum <[email protected]>2019-05-04 23:05:30 +0200
committerAhmad Fatoum <[email protected]>2019-05-04 23:05:30 +0200
commit43bfb979e5b61df66e5aa42f620c9e2e4d492391 (patch)
tree0f70586311cb55271d2169e1aea32632a582c068 /examples/CMakeLists.txt
parentae2e48c77fa7e340ff6faea9366f61186b50622d (diff)
downloadraylib-43bfb979e5b61df66e5aa42f620c9e2e4d492391.tar.gz
raylib-43bfb979e5b61df66e5aa42f620c9e2e4d492391.zip
examples: CMake: warn once only about macOS OpenGL deprecation
Otherwise compiling rlgl is too spammy. While at it remove the now unneeded CheckIncludeFiles.
Diffstat (limited to 'examples/CMakeLists.txt')
-rw-r--r--examples/CMakeLists.txt5
1 files changed, 4 insertions, 1 deletions
diff --git a/examples/CMakeLists.txt b/examples/CMakeLists.txt
index 5f0b0242..fd8a0255 100644
--- a/examples/CMakeLists.txt
+++ b/examples/CMakeLists.txt
@@ -24,7 +24,10 @@ foreach(example_dir ${example_dirs})
list(APPEND example_resources ${resources})
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)
list(REMOVE_ITEM example_sources ${CMAKE_CURRENT_SOURCE_DIR}/others/rlgl_standalone.c)