summaryrefslogtreecommitdiff
path: root/src/plugins/lua/CMakeLists.txt
diff options
context:
space:
mode:
Diffstat (limited to 'src/plugins/lua/CMakeLists.txt')
-rw-r--r--src/plugins/lua/CMakeLists.txt8
1 files changed, 2 insertions, 6 deletions
diff --git a/src/plugins/lua/CMakeLists.txt b/src/plugins/lua/CMakeLists.txt
index adc69390e..1b61bfc8c 100644
--- a/src/plugins/lua/CMakeLists.txt
+++ b/src/plugins/lua/CMakeLists.txt
@@ -24,12 +24,8 @@ weechat-lua-api.h)
set_target_properties(lua PROPERTIES PREFIX "")
if(LUA_FOUND)
- include_directories(${LUA_INCLUDE_PATH})
- if(LUA_LIBRARY AND LUALIB_LIBRARY)
- target_link_libraries(lua ${LUA_LIBRARY} ${LUALIB_LIBRARY} weechat_plugins_scripts)
- else()
- target_link_libraries(lua ${LUA_LIBRARY} weechat_plugins_scripts)
- endif()
+ include_directories(${LUA_INCLUDE_DIRS})
+ target_link_libraries(lua ${LUA_LDFLAGS} weechat_plugins_scripts)
endif()
install(TARGETS lua LIBRARY DESTINATION ${LIBDIR}/plugins)