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:
parent
c21a4cf34e
commit
3f58ba882e
|
@ -448,7 +448,7 @@ if(BUSTED_EXECUTABLE)
|
||||||
set(BUSTED_ARGS)
|
set(BUSTED_ARGS)
|
||||||
endif()
|
endif()
|
||||||
add_custom_target(check-unit
|
add_custom_target(check-unit
|
||||||
COMMAND ${BUSTED_EXECUTABLE} ${BUSTED_ARGS}
|
COMMAND ${BUSTED_EXECUTABLE} --lua=${LUA_EXECUTABLE} ${BUSTED_ARGS}
|
||||||
WORKING_DIRECTORY ${CMAKE_SOURCE_DIR}
|
WORKING_DIRECTORY ${CMAKE_SOURCE_DIR}
|
||||||
COMMENT "Running unit tests"
|
COMMENT "Running unit tests"
|
||||||
VERBATIM)
|
VERBATIM)
|
||||||
|
|
Loading…
Reference in New Issue