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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user