From 3f58ba882e0307c305675a8a7f723b08ead9f3cc Mon Sep 17 00:00:00 2001 From: Lucas Schwiderski Date: Tue, 15 Mar 2022 22:33:34 +0100 Subject: [PATCH] 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. --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 370f611d4..d0df501b7 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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)