diff options
author | Michal Domonkos <mdomonko@redhat.com> | 2023-04-05 16:33:34 +0200 |
---|---|---|
committer | Panu Matilainen <pmatilai@redhat.com> | 2023-04-25 15:04:06 +0300 |
commit | 49befbc12381e95c2dacab50284ff32328a4ef99 (patch) | |
tree | ff6ccef92ec815887f845467a357414f49d59e19 /build | |
parent | 87b9e0c28c3df3937f6676ee1b4164d6154dd9d3 (diff) | |
download | rpm-49befbc12381e95c2dacab50284ff32328a4ef99.tar.gz |
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
Diffstat (limited to 'build')
-rw-r--r-- | build/CMakeLists.txt | 2 |
1 files changed, 1 insertions, 1 deletions
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 ) |