librdkafka: patch for installed cmake config files.

pull/1113/head
Chen Yufei 3 years ago
parent f2bc9913f4
commit a4b94e97b3
  1. 7
      packages/l/librdkafka/xmake.lua

@ -53,6 +53,13 @@ package("librdkafka")
table.insert(configs, "-DWITH_" .. config:upper() .. "=" .. (package:config(config) and "ON" or "OFF"))
end
import("package.tools.cmake").install(package, configs)
if package:version():startswith("v1.8.2") then
io.replace(path.join(package:installdir("lib"), "cmake", "RdKafka", "RdKafkaConfig.cmake"),
"find_dependency(LZ4)",
'list(APPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_LIST_DIR}")\n find_dependency(LZ4)',
{plain = true})
end
end)
on_test(function (package)

Loading…
Cancel
Save