cmake: define check-unit always (#1896)

Fixes https://github.com/awesomeWM/awesome/issues/1891.
This commit is contained in:
Daniel Hahler 2017-07-01 22:32:14 +02:00 committed by GitHub
parent 1cdd7ef869
commit 09bffcd432

View file

@ -426,6 +426,10 @@ if(BUSTED_EXECUTABLE)
WORKING_DIRECTORY ${CMAKE_SOURCE_DIR}
COMMENT "Running unit tests under LuaCov"
VERBATIM)
else()
add_custom_target(check-unit true
COMMENT "Skipping check-unit, since busted was not found"
VERBATIM)
endif()
a_find_program(LUACHECK_EXECUTABLE luacheck FALSE)
if(LUACHECK_EXECUTABLE)