Skip to content

Commit

Permalink
Silence the multitude of warnings about OpenGL being deprecated on ma…
Browse files Browse the repository at this point in the history
…cOS.
  • Loading branch information
macsforme committed Aug 23, 2019
1 parent 29a3ce1 commit 82ced1b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion premake5.lua
Original file line number Diff line number Diff line change
Expand Up @@ -404,7 +404,8 @@ workspace(iif(_ACTION and string.find(_ACTION, "vs", 0),
defines "NDEBUG"

filter "system:macosx"
defines "HAVE_CGLGETCURRENTCONTEXT"
defines { "HAVE_CGLGETCURRENTCONTEXT",
"GL_SILENCE_DEPRECATION" }
buildoptions "-fvisibility=hidden"
xcodebuildsettings { ["CLANG_CXX_LIBRARY"] = "libc++",
["MACOSX_DEPLOYMENT_TARGET"] = "10.9",
Expand Down

0 comments on commit 82ced1b

Please sign in to comment.