Skip to content

Commit

Permalink
meson.build: do not require glm as a package, it suffices as a header
Browse files Browse the repository at this point in the history
  • Loading branch information
ammen99 committed Apr 1, 2024
1 parent c4148c2 commit 4c366b1
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,11 @@ project(

add_project_arguments(['-Wno-deprecated-declarations'], language: ['cpp'])

glm = dependency('glm')
glm = dependency('glm', required: false)
if not glm.found() and not meson.get_compiler('cpp').check_header('glm/glm.hpp')
error('GLM not found, and directly using the header \'glm/glm.hpp\' is not possible.')
endif

evdev = dependency('libevdev')
libxml2 = dependency('libxml-2.0')

Expand Down

0 comments on commit 4c366b1

Please sign in to comment.