clarify the find_package (Lua) logic

This commit is contained in:
Enno Rehling 2021-02-21 10:15:27 +01:00
parent f447f35ad3
commit e0ff829b61
1 changed files with 3 additions and 5 deletions

View File

@ -50,13 +50,11 @@ find_package (SQLite3 REQUIRED)
find_package (IniParser REQUIRED)
find_package (CJSON REQUIRED)
find_package (EXPAT REQUIRED)
if (TOLUA_FOUND)
if (${TOLUA_VERSION_STRING} VERSION_EQUAL "5.2")
find_package (Lua 5.2 REQUIRED)
else()
find_package (Lua)
if (NOT LLUA_FOUND)
find_package (Lua51 REQUIRED)
endif()
endif(TOLUA_FOUND)
enable_testing()