Radix cross Linux

The main Radix cross Linux repository contains the build scripts of packages, which have the most complete and common functionality for desktop machines

452 Commits   2 Branches   1 Tag
Index: lldb/cmake/modules/FindLuaAndSwig.cmake
===================================================================
--- lldb/cmake/modules/FindLuaAndSwig.cmake	(nonexistent)
+++ lldb/cmake/modules/FindLuaAndSwig.cmake	(revision 40)
@@ -0,0 +1,30 @@
+#.rst:
+# FindLuaAndSwig
+# --------------
+#
+# Find Lua and SWIG as a whole.
+
+if(LUA_LIBRARIES AND LUA_INCLUDE_DIR AND LLDB_ENABLE_SWIG)
+  set(LUAANDSWIG_FOUND TRUE)
+else()
+  if (LLDB_ENABLE_SWIG)
+    find_package(Lua 5.4)
+    if(LUA_FOUND)
+      mark_as_advanced(
+        LUA_LIBRARIES
+        LUA_INCLUDE_DIR)
+    endif()
+  else()
+    message(STATUS "SWIG 3 or later is required for Lua support in LLDB but could not be found")
+  endif()
+
+
+  include(FindPackageHandleStandardArgs)
+  find_package_handle_standard_args(LuaAndSwig
+                                    FOUND_VAR
+                                      LUAANDSWIG_FOUND
+                                    REQUIRED_VARS
+                                      LUA_LIBRARIES
+                                      LUA_INCLUDE_DIR
+                                      LLDB_ENABLE_SWIG)
+endif()