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
This commit is contained in:
Jake Turner
2025-04-03 06:40:38 +01:00
parent 6ed8b4670f
commit 368db48054
+1 -1
View File
@@ -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()