summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorEmmanuele Bassi <ebassi@gmail.com>2018-03-12 12:18:54 +0000
committerGitHub <noreply@github.com>2018-03-12 12:18:54 +0000
commit500f522d47a242e97d05ce2d5d9e44e410ed7b98 (patch)
tree7a94767ce739f804be832eb588f5aae616a2608a /src
parent2189bc0d9ba81c31281c160b05930bac7faacde4 (diff)
parentdc5e092584f5ead9aebba55444ac62ea0ff95e56 (diff)
downloadlibepoxy-500f522d47a242e97d05ce2d5d9e44e410ed7b98.tar.gz
Merge pull request #156 from tschoonj/fix-gl-pkgconfig-macos
meson: do not add gl to pkg-config file on macOS
Diffstat (limited to 'src')
-rw-r--r--src/meson.build4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/meson.build b/src/meson.build
index 3401075..66e28c1 100644
--- a/src/meson.build
+++ b/src/meson.build
@@ -93,10 +93,10 @@ epoxy_has_wgl = build_wgl ? '1' : '0'
# not needed when building Epoxy; we do want to add them to the generated
# pkg-config file, for consumers of Epoxy
gl_reqs = []
-if gl_dep.found()
+if gl_dep.found() and gl_dep.type_name() == 'pkgconfig'
gl_reqs += 'gl'
endif
-if build_egl and egl_dep.found()
+if build_egl and egl_dep.found() and egl_dep.type_name() == 'pkgconfig'
gl_reqs += 'egl'
endif