Skip to content

Commit

Permalink
stop lying about checking opengl on mac
Browse files Browse the repository at this point in the history
  • Loading branch information
jbmouret committed Oct 1, 2021
1 parent 69b51c8 commit 156af8a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions waf_tools/magnum.py
Original file line number Diff line number Diff line change
Expand Up @@ -213,15 +213,15 @@ def fatal(required, msg):
magnum_includes = magnum_includes + [opengl_include_dir]
conf.end_msg(opengl_include_dir)

conf.start_msg('Magnum: Checking for OpenGL lib')
# no need to check on osx (it works anyway)
# Osx 11.3 (Big Sur) does not have libGL.dylib anymore (there is libGL.tbd)
# but at any rate, OpenGL is a framework so checking the dylib is not really what we need
if conf.env['DEST_OS'] != 'darwin':
conf.start_msg('Magnum: Checking for OpenGL lib')
opengl_lib_dir = get_directory('libGL.'+suffix, libs_check)
magnum_libpaths = magnum_libpaths + [opengl_lib_dir]
magnum_libs = magnum_libs + ['GL']
conf.end_msg(['GL'])
conf.end_msg(['GL'])

conf.start_msg('Magnum: Checking for MagnumGL lib')
gl_lib_dir = get_directory('libMagnumGL.'+suffix, libs_check)
Expand Down

0 comments on commit 156af8a

Please sign in to comment.