We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d404f2d commit 74eb1fcCopy full SHA for 74eb1fc
meson.build
@@ -92,12 +92,23 @@ elif nvcc_name == 'nvcc'
92
]
93
endif
94
95
+if enable_opengl
96
+ glm_dep = dependency('glm', required: false)
97
+ if not glm_dep.found()
98
+ if cc.has_header('glm/glm.hpp')
99
+ glm_dep = declare_dependency()
100
+ else
101
+ error('GLM not found: no pkg-config (glm.pc) and header <glm/glm.hpp> missing')
102
+ endif
103
104
+endif
105
+
106
extra_deps = []
107
108
if enable_opengl
109
extra_deps += [
110
dependency('glew'),
- dependency('glm'),
111
+ glm_dep,
112
dependency('sdl2'),
113
dependency('gl'),
114
0 commit comments