1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-01-10 23:44:24 +00:00

Projucer: Use new CMake version for Android builds

This commit is contained in:
reuk 2023-02-27 12:49:07 +00:00
parent edca5e9629
commit 721404f7ad
No known key found for this signature in database
GPG key ID: FCB43929F012EE5C

View file

@ -389,7 +389,7 @@ private:
mo << "# Automatically generated CMakeLists, created by the Projucer" << newLine
<< "# Don't edit this file! Your changes will be overwritten when you re-save the Projucer project!" << newLine
<< newLine
<< "cmake_minimum_required(VERSION 3.4.1)" << newLine
<< "cmake_minimum_required(VERSION 3.22)" << newLine
<< newLine
<< "project(juce_jni_project)" << newLine
<< newLine;
@ -682,10 +682,13 @@ private:
mo << "android {" << newLine;
mo << " compileSdkVersion " << static_cast<int> (androidTargetSDK.get()) << newLine;
// CMake 3.22 will fail to build Android projects that set ANDROID_ARM_MODE unless NDK 24+ is used
mo << " ndkVersion \"25.2.9519653\"" << newLine;
mo << " namespace " << project.getBundleIdentifierString().toLowerCase().quoted() << newLine;
mo << " externalNativeBuild {" << newLine;
mo << " cmake {" << newLine;
mo << " path \"CMakeLists.txt\"" << newLine;
mo << " version \"3.22.1\"" << newLine;
mo << " }" << newLine;
mo << " }" << newLine;