summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorErik Faye-Lund <erik.faye-lund@collabora.com>2023-02-24 15:51:32 +0100
committerErik Faye-Lund <erik.faye-lund@collabora.com>2023-02-27 08:55:05 +0000
commitd248d8ceffa8182259e78578ab4b5140bd64b4b3 (patch)
tree7e0294186926d6f19909c0bd6253157d165d81cf
parent17e4d6a181fdfe6b15ba97d0304228c8d3735e2e (diff)
downloadmesa-demos-d248d8ceffa8182259e78578ab4b5140bd64b4b3.tar.gz
meson: do not search for glu on macos
On macOS, GLU is part of OpenGL.Framework, so we don't need to search explicitly for it. Even if we did, we wouldn't find it, because we include it by a different path than on other platforms. So let's just bypass this entire check on macOS. We'll be fine anyway. Reviewed-by: Hoe Hao Cheng <haochengho12907@gmail.com>
-rw-r--r--meson.build3
1 files changed, 2 insertions, 1 deletions
diff --git a/meson.build b/meson.build
index a08d3bd4..dd88dd87 100644
--- a/meson.build
+++ b/meson.build
@@ -87,7 +87,8 @@ endif
dep_threads = dependency('threads')
dep_glu = dependency('glu', required : false)
-if not dep_glu.found()
+# GLU is part of OpenGL.Framework
+if not dep_glu.found() and host_machine.system() != 'darwin'
_glu_name = 'GLU'
if host_machine.system() == 'windows'
_glu_name = 'glu32'