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:
Perrin "kAworu" Alexandre 2009-01-06 22:21:40 +01:00 committed by Julien Danjou
parent 33372ea318
commit 14ef6acd48
1 changed files with 1 additions and 2 deletions

View File

@ -165,8 +165,7 @@ a_find_library(LIB_READLINE readline)
a_find_library(LIB_EV ev) a_find_library(LIB_EV ev)
# Error check # Error check
set( LUA_FOUND LUA51_FOUND OR LUA50_FOUND )# This is a workaround to a cmake bug if(NOT LUA51_FOUND AND NOT LUA50_FOUND) # This is a workaround to a cmake bug
if(NOT LUA_FOUND)
message(FATAL_ERROR "lua library not found") message(FATAL_ERROR "lua library not found")
endif() endif()