cmake: abort if Lua was not found (#1892)
This will usually result in errors during linking, and the error message itself is not obvious to find. Therefore just abort in this case.
This commit is contained in:
parent
718d91355d
commit
4b4318602c
|
@ -67,6 +67,12 @@ a_find_program(CONVERT_EXECUTABLE convert TRUE)
|
|||
include(FindPkgConfig)
|
||||
# lua
|
||||
include(FindLua)
|
||||
if (NOT LUA_FOUND)
|
||||
message(FATAL_ERROR
|
||||
"Could not find Lua. See the error above.\n"
|
||||
"You might want to hint it using the LUA_DIR environment variable, "
|
||||
"or set the LUA_INCLUDE_DIR / LUA_LIBRARY CMake variables.")
|
||||
endif()
|
||||
# }}}
|
||||
|
||||
# {{{ Check if documentation can be build
|
||||
|
|
Loading…
Reference in New Issue