Skip to content

Commit f1087c7

Browse files
committed
CMake: Use Lua interpreter as found by find_program
1 parent 18bd7d4 commit f1087c7

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

tests/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ endif()
115115
116116
if(LUA_EXE)
117117
message(STATUS "Added test: lua-lib")
118-
add_test(NAME lua-lib COMMAND lua lua/tests.lua
118+
add_test(NAME lua-lib COMMAND ${LUA_EXE} lua/tests.lua
119119
WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR})
120120
set_tests_properties(lua-lib PROPERTIES LABELS NoDB)
121121
else()

0 commit comments

Comments
 (0)