gentoo/dev-cpp/sol2/files/sol2-3.2.2-luajit-pkgconf.patch
Alexey Sokolov 35da96df06
dev-cpp/sol2: new package 3.2.2
games-engines/openmw-0.48 will depend on it

Package-Manager: Portage-3.0.20, Repoman-3.0.2
Signed-off-by: Alexey Sokolov <alexey+gentoo@asokolov.org>
Signed-off-by: Ionen Wolkens <ionen@gentoo.org>
2021-07-14 01:46:17 -04:00

18 lines
651 B
Diff

Use the lua version selected by lua eclass
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -188,7 +188,11 @@ if (SOL2_IS_TOP_LEVEL AND (SOL2_DO_TESTS OR SOL2_DO_EXAMPLES))
string(TOLOWER ${SOL2_LUA_VERSION} NORMALIZED_LUA_VERSION)
# Find way to get Lua: build if requested, or attempt to build if no matching version is found
- if (SOL2_BUILD_LUA)
+ if (TRUE)
+ find_package(PkgConfig REQUIRED)
+ pkg_check_modules(LUA REQUIRED lua IMPORTED_TARGET)
+ set(LUA_LIBRARIES PkgConfig::LUA)
+ elseif (SOL2_BUILD_LUA)
find_package(LuaBuild REQUIRED COMPONENTS ${SOL2_LUA_VERSION})
elseif (NOT SOL2_LUA_VERSION)
find_package(LuaBuild REQUIRED)