1
0
mirror of https://github.com/weechat/weechat.git synced 2026-06-27 05:16:38 +02:00

core: use pkg-config to find Lua lib/headers with cmake, detection of Lua 5.2

This commit is contained in:
Sébastien Helleu
2014-10-03 22:20:10 +02:00
parent 57104a0c6d
commit b51edca846
2 changed files with 5 additions and 53 deletions
+2 -6
View File
@@ -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)