[lldb/CMake] Only auto-enable Lua when SWIG is found
authorJonas Devlieghere <jonas@devlieghere.com>
Wed, 8 Jan 2020 22:01:57 +0000 (14:01 -0800)
committerJonas Devlieghere <jonas@devlieghere.com>
Wed, 8 Jan 2020 22:02:47 +0000 (14:02 -0800)
commitedadb818e5be005fa4397b7e4bd5e397ddb4f5d6
tree16d5963c8b7d64a336472cf20981b13a8aea195d
parent2d258ed931cdf47a7d1dcf08ad963b5452a8670f
[lldb/CMake] Only auto-enable Lua when SWIG is found

Just like Python, Lua should only be auto-enabled if SWIG is found as
well. This moves the logic of finding SWIG and Lua as a whole into a new
CMake package.
lldb/cmake/modules/FindLuaAndSwig.cmake [new file with mode: 0644]
lldb/cmake/modules/LLDBConfig.cmake