Silence the OpenGL deprecation warnings on macOS 10.14
This commit is contained in:
parent
31aa782362
commit
c48fa0f078
3
setup.py
3
setup.py
@ -236,6 +236,9 @@ def kitty_env():
|
||||
cflags.extend(pkg_config('libpng', '--cflags-only-I'))
|
||||
if is_macos:
|
||||
font_libs = ['-framework', 'CoreText', '-framework', 'CoreGraphics']
|
||||
# Apple deprecated OpenGL in Mojave (10.14) silence the endless
|
||||
# warnings about it
|
||||
cppflags.append('-DGL_SILENCE_DEPRECATION')
|
||||
else:
|
||||
cflags.extend(pkg_config('fontconfig', '--cflags-only-I'))
|
||||
font_libs = pkg_config('fontconfig', '--libs')
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user