浏览代码

examples: CMake: restrict OpenGL deprecation warnings to macOS

pull/838/head
Ahmad Fatoum 5 年前
父节点
当前提交
0467f32cc1
找不到此签名对应的密钥 GPG 密钥 ID: C3EAC3DE9321D59B
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. +1
    -1
      examples/CMakeLists.txt

+ 1
- 1
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()

正在加载...
取消
保存