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:
Maciej Barć
2025-03-24 00:03:27 +01:00
parent f0ddba54bb
commit 5f3498afdb
3 changed files with 29 additions and 2 deletions

View 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()

View File

@@ -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() {

View File

@@ -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() {