forked from OSchip/llvm-project
[lldb/lua] Force Lua version to be 5.3
Due to CMake cache, find_package in FindLuaAndSwig.cmake will be ignored. This commit adds EXACT and REQUIRED flags to it and removes find_package in Lua ScriptInterpreter. Signed-off-by: Siger Yang <sigeryeung@gmail.com> Reviewed By: tammela, JDevlieghere Differential Revision: https://reviews.llvm.org/D108515
This commit is contained in:
parent
b24c91fffc
commit
6de63b3ba5
|
@ -9,7 +9,7 @@ if(LUA_LIBRARIES AND LUA_INCLUDE_DIR AND SWIG_EXECUTABLE)
|
|||
else()
|
||||
find_package(SWIG 3.0)
|
||||
if (SWIG_FOUND)
|
||||
find_package(Lua 5.3)
|
||||
find_package(Lua 5.3 EXACT)
|
||||
if(LUA_FOUND AND SWIG_FOUND)
|
||||
mark_as_advanced(
|
||||
LUA_LIBRARIES
|
||||
|
|
|
@ -1,5 +1,3 @@
|
|||
find_package(Lua REQUIRED)
|
||||
|
||||
add_lldb_library(lldbPluginScriptInterpreterLua PLUGIN
|
||||
Lua.cpp
|
||||
ScriptInterpreterLua.cpp
|
||||
|
|
Loading…
Reference in New Issue