meson: fix MacOS build

lua is not available on macOS currently and the lack of lack of the lua variable causes
the build to fail.
This commit is contained in:
Lukas Oberhuber 2024-08-12 09:56:42 +01:00 committed by Lukas Oberhuber
parent 68462fb25e
commit deaa99cf08

View file

@ -1,6 +1,6 @@
subdir('goat-exercises')
if not meson.is_cross_build() and lua.found() and (platform_windows or not relocatable_bundle)
if not meson.is_cross_build() and is_variable('lua') and lua.found() and (platform_windows or not relocatable_bundle)
lua_config = configuration_data()
# For Windows, we set the binary name only.
# For other OSes, we use the full path (when not in a relocatable