mirror of
https://github.com/awesomeWM/awesome
synced 2024-11-16 07:47:22 +01:00
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
1 changed files with 6 additions and 0 deletions
|
@ -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 a new issue