From 4cba8c30679b7c6d41d21d88d3f3211a459a8c95 Mon Sep 17 00:00:00 2001 From: Stevenchou1898 Date: Sat, 8 Mar 2025 09:25:48 -0800 Subject: [PATCH] Update build.gradle.kts MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 设置cmake版本 version = "3.31.6" 修复cmake complier identification bypass 警告. --- Android-kotlin-Code/core/build.gradle.kts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Android-kotlin-Code/core/build.gradle.kts b/Android-kotlin-Code/core/build.gradle.kts index 465edb5..bf6626f 100644 --- a/Android-kotlin-Code/core/build.gradle.kts +++ b/Android-kotlin-Code/core/build.gradle.kts @@ -45,6 +45,8 @@ android { externalNativeBuild { cmake { + // 设置cmake版本 + version = "3.31.6" path = file("src/main/cpp/CMakeLists.txt") } } @@ -62,4 +64,4 @@ afterEvaluate { tasks.withType(GolangBuildTask::class.java).forEach { it.inputs.dir(golangSource) } -} \ No newline at end of file +}