Files
gentoo/dev-lua/luv/files/luv-1.32.0.0-cmake_lua_version.patch
Marek Szuba 40ae837172 dev-lua/luv: migrate to lua-single.eclass
In theory this should be multi-impl but upstream does not directly support
it, in particular their pkgconfig files do not include the Lua ABI
version in their names. For now just keep it simple i.e. stick with the
old behaviour of only supporting one implementation at a time.

Signed-off-by: Marek Szuba <marecki@gentoo.org>
2020-10-13 18:47:27 +02:00

12 lines
342 B
Diff

--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -107,7 +107,7 @@
include_directories(${LUAJIT_INCLUDE_DIR})
link_directories(${LUAJIT_LIBRARIES})
else (USE_LUAJIT)
- find_package(Lua REQUIRED)
+ find_package(Lua ${LUA_VERSION} EXACT REQUIRED)
include_directories(${LUA_INCLUDE_DIR})
endif (USE_LUAJIT)