From 49befbc12381e95c2dacab50284ff32328a4ef99 Mon Sep 17 00:00:00 2001 From: Michal Domonkos Date: Wed, 5 Apr 2023 16:33:34 +0200 Subject: Use CMake Lua module While many distros ship a pkg-config file for Lua, the upstream source tree does not provide one and so we shouldn't rely on it. Turns out, CMake provides a native Lua module so just use that. Unfortunately, the package doesn't define any IMPORTED target so add our own, similarly to how we did this recently with libmagic and libimaevm. Of particular note is that this adds an implicit dependency between CMake and Lua (e.g. Lua 5.4 support was only added in CMake 3.18), but that hopefully won't have much impact on most OS installations out there. Fixes: #2247 --- build/CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'build') diff --git a/build/CMakeLists.txt b/build/CMakeLists.txt index 440e06f08..898d42170 100644 --- a/build/CMakeLists.txt +++ b/build/CMakeLists.txt @@ -16,10 +16,10 @@ target_sources(librpmbuild PRIVATE target_link_libraries(librpmbuild PUBLIC librpmio librpm) target_link_libraries(librpmbuild PRIVATE libmisc - PkgConfig::LUA PkgConfig::POPT PkgConfig::LIBELF PkgConfig::LIBDW + LUA::LUA MAGIC::MAGIC ) -- cgit v1.2.1