From ffb21c68bf1ebd83d84373740c93fce1d9182a16 Mon Sep 17 00:00:00 2001 From: Chen Yufei Date: Tue, 29 Mar 2022 18:41:46 +0800 Subject: [PATCH] librdkafka: better fix for find lz4 fix. --- packages/l/librdkafka/xmake.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/l/librdkafka/xmake.lua b/packages/l/librdkafka/xmake.lua index 216b9c330..d77be168b 100644 --- a/packages/l/librdkafka/xmake.lua +++ b/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)