forked from github/server
clarify the find_package (Lua) logic
This commit is contained in:
parent
f447f35ad3
commit
e0ff829b61
|
@ -50,13 +50,11 @@ find_package (SQLite3 REQUIRED)
|
||||||
find_package (IniParser REQUIRED)
|
find_package (IniParser REQUIRED)
|
||||||
find_package (CJSON REQUIRED)
|
find_package (CJSON REQUIRED)
|
||||||
find_package (EXPAT REQUIRED)
|
find_package (EXPAT REQUIRED)
|
||||||
if (TOLUA_FOUND)
|
|
||||||
if (${TOLUA_VERSION_STRING} VERSION_EQUAL "5.2")
|
find_package (Lua)
|
||||||
find_package (Lua 5.2 REQUIRED)
|
if (NOT LLUA_FOUND)
|
||||||
else()
|
|
||||||
find_package (Lua51 REQUIRED)
|
find_package (Lua51 REQUIRED)
|
||||||
endif()
|
endif()
|
||||||
endif(TOLUA_FOUND)
|
|
||||||
|
|
||||||
enable_testing()
|
enable_testing()
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue