From 0467f32cc112b189b2ca61bce68bcf32f9c5e86d Mon Sep 17 00:00:00 2001 From: Ahmad Fatoum Date: Wed, 15 May 2019 07:31:02 +0200 Subject: [PATCH] examples: CMake: restrict OpenGL deprecation warnings to macOS --- examples/CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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()