Use CMake Lua variable for coverage runner

This commit is contained in:
Lucas Schwiderski 2021-03-06 17:18:05 +01:00
parent 998b24e544
commit 19bf83b409
No known key found for this signature in database
GPG Key ID: AA12679AAA6DF4D8
1 changed files with 1 additions and 1 deletions

View File

@ -32,7 +32,7 @@ endif()
if (DO_COVERAGE)
execute_process(
COMMAND env "SOURCE_DIRECTORY=${TOP_SOURCE_DIR}" lua -e "require('luacov.runner')('${TOP_SOURCE_DIR}/.luacov')"
COMMAND env "SOURCE_DIRECTORY=${TOP_SOURCE_DIR}" ${LUA_EXECUTABLE} -e "require('luacov.runner')('${TOP_SOURCE_DIR}/.luacov')"
RESULT_VARIABLE TEST_RESULT
ERROR_VARIABLE TEST_ERROR
ERROR_STRIP_TRAILING_WHITESPACE)