diff --git a/cmake/FindLua.cmake b/cmake/FindLua.cmake index a20af5b..6628209 100644 --- a/cmake/FindLua.cmake +++ b/cmake/FindLua.cmake @@ -16,6 +16,7 @@ #============================================================================= # Copyright 2007-2009 Kitware, Inc. # Modified to support Lua 5.2 by LuaDist 2012 +# Modified to support Lua 5.4 by LuaDist 2022 # # Distributed under the OSI-approved BSD License (the "License"); # see accompanying file Copyright.txt for details. @@ -27,7 +28,7 @@ # (To distribute this file outside of CMake, substitute the full # License text for the above reference.) # -# This module will try to find the newest Lua version down to 5.2 +# This module will try to find the newest Lua version down to 5.4 # Always search for non-versioned lua first (recommended) SET(_POSSIBLE_LUA_INCLUDE include include/lua) @@ -36,7 +37,7 @@ SET(_POSSIBLE_LUA_INCLUDE include include/lua) #SET(_POSSIBLE_LUA_LIBRARY lua) # Determine possible naming suffixes (there is no standard for this) -SET(_POSSIBLE_SUFFIXES "52" "5.2" "-5.2" "53" "5.3" "-5.3" "") +SET(_POSSIBLE_SUFFIXES "54" "5.4" "-5.4" "53" "5.3" "-5.3" "52" "5.2" "-5.2" "") # Set up possible search names and locations FOREACH(_SUFFIX IN LISTS _POSSIBLE_SUFFIXES)