mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2025-12-21 21:17:37 -08:00
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>
18 lines
651 B
Diff
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)
|