diff options
| author | Ahmad Fatoum <ahmad@a3f.at> | 2019-05-15 07:31:02 +0200 |
|---|---|---|
| committer | Ahmad Fatoum <ahmad@a3f.at> | 2019-05-15 08:13:20 +0200 |
| commit | 0467f32cc112b189b2ca61bce68bcf32f9c5e86d (patch) | |
| tree | 974c1b9a9211ece2f00a7b6ba46607967953e02f /examples | |
| parent | e8a376c80c61278bb003d4f96b01df2657dc61ec (diff) | |
| download | raylib-0467f32cc112b189b2ca61bce68bcf32f9c5e86d.tar.gz raylib-0467f32cc112b189b2ca61bce68bcf32f9c5e86d.zip | |
examples: CMake: restrict OpenGL deprecation warnings to macOS
Diffstat (limited to 'examples')
| -rw-r--r-- | examples/CMakeLists.txt | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/CMakeLists.txt b/examples/CMakeLists.txt index fd8a0255..f3457b04 100644 --- a/examples/CMakeLists.txt +++ b/examples/CMakeLists.txt @@ -24,7 +24,7 @@ foreach(example_dir ${example_dirs}) list(APPEND example_resources ${resources}) endforeach() -if (NOT CMAKE_SYSTEM STRLESS "Darwin-18.0.0") +if (APPLE AND 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() |
