From e0ff829b61c3ae4bb152407068899af898a8a9c3 Mon Sep 17 00:00:00 2001 From: Enno Rehling Date: Sun, 21 Feb 2021 10:15:27 +0100 Subject: [PATCH] clarify the find_package (Lua) logic --- CMakeLists.txt | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 67ee86f14..94805444c 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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()