Просмотр исходного кода

Add CMake minimum policy version to build.gradle

If user is compiling with CMake 4, ensure it doesn't fail.

Issue #300.
Miku AuahDark 1 неделя назад
Родитель
Сommit
007d258cb4
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      app/build.gradle

+ 1 - 1
app/build.gradle

@@ -18,7 +18,7 @@ android {
 
         externalNativeBuild {
             cmake {
-                arguments "-DANDROID_STL=c++_shared", "-DANDROID_SUPPORT_FLEXIBLE_PAGE_SIZES=1", "-DCMAKE_DISABLE_PRECOMPILE_HEADERS=ON"
+                arguments "-DANDROID_STL=c++_shared", "-DANDROID_SUPPORT_FLEXIBLE_PAGE_SIZES=1", "-DCMAKE_POLICY_VERSION_MINIMUM=3.5", "-DCMAKE_DISABLE_PRECOMPILE_HEADERS=ON", "-DCMAKE_BUILD_TYPE=RelWithDebInfo"
                 // https://issuetracker.google.com/issues/274493986
                 // Transitive shared library that's added through `add_dependencies` is not taken into
                 // account. This result in liboboe.so and libluajit.so not get included into the final