Преглед изворни кода

Add CMake minimum policy version to build.gradle

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

Issue #300.
Miku AuahDark пре 9 месеци
родитељ
комит
007d258cb4
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      app/build.gradle

+ 1 - 1
app/build.gradle

@@ -18,7 +18,7 @@ android {
 
 
         externalNativeBuild {
         externalNativeBuild {
             cmake {
             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
                 // https://issuetracker.google.com/issues/274493986
                 // Transitive shared library that's added through `add_dependencies` is not taken into
                 // 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
                 // account. This result in liboboe.so and libluajit.so not get included into the final