librdkafka: better fix for find lz4 fix.

pull/1115/head
Chen Yufei 3 years ago
parent 3eb4d9790d
commit ffb21c68bf
  1. 2
      packages/l/librdkafka/xmake.lua

@ -57,7 +57,7 @@ package("librdkafka")
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)',
'list(INSERT CMAKE_MODULE_PATH 0 "${CMAKE_CURRENT_LIST_DIR}")\n find_dependency(LZ4)\n list(REMOVE_AT CMAKE_MODULE_PATH 0)',
{plain = true})
end
end)

Loading…
Cancel
Save