mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-09-23 16:49:10 -07:00
dev-lang/luau: bump cmake_minimum_required
Closes: https://bugs.gentoo.org/951828 Signed-off-by: Maciej Barć <xgqt@gentoo.org>
This commit is contained in:
19
dev-lang/luau/files/luau-0.653-cmake_minimum.patch
Normal file
19
dev-lang/luau/files/luau-0.653-cmake_minimum.patch
Normal file
@@ -0,0 +1,19 @@
|
||||
--- a/CMakeLists.txt
|
||||
+++ b/CMakeLists.txt
|
||||
@@ -4,7 +4,7 @@ if(EXT_PLATFORM_STRING)
|
||||
return()
|
||||
endif()
|
||||
|
||||
-cmake_minimum_required(VERSION 3.0)
|
||||
+cmake_minimum_required(VERSION 3.20)
|
||||
|
||||
option(LUAU_BUILD_CLI "Build CLI" ON)
|
||||
option(LUAU_BUILD_TESTS "Build tests" ON)
|
||||
@@ -17,7 +17,6 @@ cmake_policy(SET CMP0054 NEW)
|
||||
cmake_policy(SET CMP0091 NEW)
|
||||
|
||||
if(LUAU_STATIC_CRT)
|
||||
- cmake_minimum_required(VERSION 3.15)
|
||||
set(CMAKE_MSVC_RUNTIME_LIBRARY "MultiThreaded$<$<CONFIG:Debug>:Debug>")
|
||||
endif()
|
||||
|
||||
@@ -25,7 +25,11 @@ SLOT="0"
|
||||
IUSE="static-libs test"
|
||||
RESTRICT="!test? ( test )"
|
||||
|
||||
PATCHES=( "${FILESDIR}/luau-0.653-TypedAllocator-cpp.patch" )
|
||||
PATCHES=(
|
||||
"${FILESDIR}/luau-0.653-TypedAllocator-cpp.patch"
|
||||
"${FILESDIR}/luau-0.653-cmake_minimum.patch"
|
||||
)
|
||||
|
||||
DOCS=( CONTRIBUTING.md README.md SECURITY.md )
|
||||
|
||||
src_configure() {
|
||||
|
||||
@@ -25,7 +25,11 @@ SLOT="0"
|
||||
IUSE="static-libs test"
|
||||
RESTRICT="!test? ( test )"
|
||||
|
||||
PATCHES=( "${FILESDIR}/luau-0.653-TypedAllocator-cpp.patch" )
|
||||
PATCHES=(
|
||||
"${FILESDIR}/luau-0.653-TypedAllocator-cpp.patch"
|
||||
"${FILESDIR}/luau-0.653-cmake_minimum.patch"
|
||||
)
|
||||
|
||||
DOCS=( CONTRIBUTING.md README.md SECURITY.md )
|
||||
|
||||
src_configure() {
|
||||
|
||||
Reference in New Issue
Block a user