diff options
author | Sébastien Helleu <flashcode@flashtux.org> | 2014-10-03 22:20:10 +0200 |
---|---|---|
committer | Sébastien Helleu <flashcode@flashtux.org> | 2014-10-03 22:31:02 +0200 |
commit | b51edca84601ca233a58d535aa88a00715a188b8 (patch) | |
tree | b8b448f6c500a5d9ee7238362e759d59d317160e /src/plugins | |
parent | 57104a0c6d7eda8f73152bba29242f1da8cbfffa (diff) | |
download | weechat-b51edca84601ca233a58d535aa88a00715a188b8.zip |
core: use pkg-config to find Lua lib/headers with cmake, detection of Lua 5.2
Diffstat (limited to 'src/plugins')
-rw-r--r-- | src/plugins/lua/CMakeLists.txt | 8 |
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) |