fixed CMake logic error in Lua detection.
Signed-off-by: Perrin "kAworu" Alexandre <kaworu(a)kaworu,ch> Signed-off-by: Julien Danjou <julien@danjou.info>
This commit is contained in:
parent
33372ea318
commit
14ef6acd48
|
@ -165,8 +165,7 @@ a_find_library(LIB_READLINE readline)
|
|||
a_find_library(LIB_EV ev)
|
||||
|
||||
# Error check
|
||||
set( LUA_FOUND LUA51_FOUND OR LUA50_FOUND )# This is a workaround to a cmake bug
|
||||
if(NOT LUA_FOUND)
|
||||
if(NOT LUA51_FOUND AND NOT LUA50_FOUND) # This is a workaround to a cmake bug
|
||||
message(FATAL_ERROR "lua library not found")
|
||||
endif()
|
||||
|
||||
|
|
Loading…
Reference in New Issue