From 368db48054a637c6d508aa22480f49b843270c50 Mon Sep 17 00:00:00 2001 From: Jake Turner Date: Thu, 3 Apr 2025 06:34:38 +0100 Subject: [PATCH] Fix Android building with cmake 4.0 Set cmake policies to 3.5 when building with cmake 4.0 With cmake policies set to 4.0 Android fails to link correctly. It is fixed by running the cmake command twice before doing the make build or setting the cmake policies to 3.5 --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index e197fa5f2..8474d3d1c 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,5 +1,5 @@ if (NOT CMAKE_VERSION VERSION_LESS "4.0") - cmake_minimum_required(VERSION 4.0) + cmake_minimum_required(VERSION 3.5) else() cmake_minimum_required(VERSION 2.8.12) endif()