build: Set Lua executable for Busted

Since Busted allows setting the Lua executable to run with via a CLI
arg, some distributions stopped shipping specialized variants for each
Lua version.
This commit is contained in:
Lucas Schwiderski 2022-03-15 22:33:34 +01:00
parent c21a4cf34e
commit 3f58ba882e
No known key found for this signature in database
GPG Key ID: AA12679AAA6DF4D8
1 changed files with 1 additions and 1 deletions

View File

@ -448,7 +448,7 @@ if(BUSTED_EXECUTABLE)
set(BUSTED_ARGS)
endif()
add_custom_target(check-unit
COMMAND ${BUSTED_EXECUTABLE} ${BUSTED_ARGS}
COMMAND ${BUSTED_EXECUTABLE} --lua=${LUA_EXECUTABLE} ${BUSTED_ARGS}
WORKING_DIRECTORY ${CMAKE_SOURCE_DIR}
COMMENT "Running unit tests"
VERBATIM)