diff options
| author | Ahmad Fatoum <[email protected]> | 2019-05-04 23:05:30 +0200 |
|---|---|---|
| committer | Ahmad Fatoum <[email protected]> | 2019-05-04 23:05:30 +0200 |
| commit | 43bfb979e5b61df66e5aa42f620c9e2e4d492391 (patch) | |
| tree | 0f70586311cb55271d2169e1aea32632a582c068 | |
| parent | ae2e48c77fa7e340ff6faea9366f61186b50622d (diff) | |
| download | raylib-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.
| -rw-r--r-- | examples/CMakeLists.txt | 5 |
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) |
