Skip to content

Commit

Permalink
cmake: Find sudo explicitly
Browse files Browse the repository at this point in the history
  • Loading branch information
vmg committed Mar 30, 2016
1 parent 81990c3 commit 1e543fa
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tests/lua/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
find_program(LUAJIT luajit)
find_program(SUDO sudo)

if(LUAJIT)
add_test(NAME lua_test_clang WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}
COMMAND sudo ${LUAJIT} test_clang.lua)
COMMAND ${SUDO} ${LUAJIT} test_clang.lua)
endif()

0 comments on commit 1e543fa

Please sign in to comment.