From 9d6ed9fb7bccc513545f0c985d5dc0b9e22fa67d Mon Sep 17 00:00:00 2001 From: Felipe Sateler 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. Gbp-Pq: Topic debian-specific Gbp-Pq: Name lua-link.diff --- interfaces/CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/interfaces/CMakeLists.txt b/interfaces/CMakeLists.txt index 023a9fe3..3781be26 100644 --- a/interfaces/CMakeLists.txt +++ b/interfaces/CMakeLists.txt @@ -195,7 +195,7 @@ endif() endif() if(BUILD_LUA_INTERFACE) - set(swiglua_LIBS ${LUAJIT_LIBRARY} ${CSOUNDLIB} libcsnd6) + set(swiglua_LIBS ${CSOUNDLIB} libcsnd6) SET_SOURCE_FILES_PROPERTIES(lua_interface.i PROPERTIES CPLUSPLUS ON -- cgit v1.2.3