From d248d8ceffa8182259e78578ab4b5140bd64b4b3 Mon Sep 17 00:00:00 2001 From: Erik Faye-Lund Date: Fri, 24 Feb 2023 15:51:32 +0100 Subject: 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 --- meson.build | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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' -- cgit v1.2.1