From: Felipe Sateler <fsateler@gmail.com>
Date: Mon, 30 Nov 2015 10:02:13 -0300
Subject: Only link to lua when necessary, and to the correct lib

Lua policy recommends not linking against the lua library, because it
doesn't help at all. All lua-using programs will load the library, not
the modules.
TODO: The csound-lua bridge is not implemented in cmake yet.
The csound-lua bridge, on the other hand, needs to link to the library or
else it will fail to load. Use the correct library name.
---
 interfaces/CMakeLists.txt | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/interfaces/CMakeLists.txt b/interfaces/CMakeLists.txt
index aff6e8f..bd3a23c 100644
--- a/interfaces/CMakeLists.txt
+++ b/interfaces/CMakeLists.txt
@@ -217,7 +217,7 @@ if(BUILD_JAVA_INTERFACE OR BUILD_LUA_INTERFACE)
 
     if(BUILD_LUA_INTERFACE)
         set(LUA_MODULE_INSTALL_DIR ${LIBRARY_INSTALL_DIR} CACHE PATH "Lua  module install dir")
-        set(swiglua_LIBS ${LUA_LIBRARY} ${CSOUNDLIB} libcsnd6)
+        set(swiglua_LIBS ${CSOUNDLIB} libcsnd6)
 
         SET_SOURCE_FILES_PROPERTIES(lua_interface.i
             PROPERTIES CPLUSPLUS ON
