mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-08-24 06:48:18 -07:00
The usual cmake FindPackage(Lua) version hack. Lua compatibility as per upstream build scripts. Nb. The unmigrated 3.6.5 ebuild does not set -DOSG_USE_LOCAL_LUA_SOURCE=OFF in src_configure so it is a) always built with Lua support, and b) linked against bundled Lua. Closes: https://bugs.gentoo.org/752573 Signed-off-by: Marek Szuba <marecki@gentoo.org>
15 lines
440 B
Diff
15 lines
440 B
Diff
--- a/CMakeLists.txt
|
|
+++ b/CMakeLists.txt
|
|
@@ -771,10 +771,7 @@
|
|
FIND_PACKAGE(LIBLAS)
|
|
|
|
IF (NOT(OSG_USE_LOCAL_LUA_SOURCE))
|
|
- FIND_PACKAGE(Lua52)
|
|
- IF (NOT (LUA_LIBRARIES AND LUA_INCLUDE_DIR))
|
|
- FIND_PACKAGE(Lua51)
|
|
- ENDIF()
|
|
+ FIND_PACKAGE(Lua ${LUA_VERSION} EXACT)
|
|
ENDIF()
|
|
|
|
# V8 and Python plugins are tests for linking against these libraries but aren't functionality beyond this.
|