Skip to content

Commit

Permalink
Fix warnings in compilation
Browse files Browse the repository at this point in the history
To remove CMake version warnings, one may need to change the
CMakeLists.txt file in the NDK installation.
  • Loading branch information
JingMatrix committed Dec 9, 2024
1 parent 8dff17c commit 284c723
Show file tree
Hide file tree
Showing 7 changed files with 7 additions and 6 deletions.
2 changes: 1 addition & 1 deletion core/src/main/jni/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
cmake_minimum_required(VERSION 3.8)
cmake_minimum_required(VERSION 3.10)
project(core)

add_subdirectory(${EXTERNAL_ROOT} external)
Expand Down
2 changes: 1 addition & 1 deletion daemon/src/main/jni/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
cmake_minimum_required(VERSION 3.8)
cmake_minimum_required(VERSION 3.10)
project(daemon)

add_subdirectory(${EXTERNAL_ROOT} external)
Expand Down
2 changes: 1 addition & 1 deletion dex2oat/src/main/cpp/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
cmake_minimum_required(VERSION 3.8)
cmake_minimum_required(VERSION 3.10)
project(dex2oat)

add_executable(dex2oat dex2oat.c)
Expand Down
1 change: 1 addition & 0 deletions external/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,7 @@ set(XZ_SOURCES
set(XZ_INCLUDES xz-embedded/linux/include/linux xz-embedded/userspace)
list(TRANSFORM XZ_SOURCES PREPEND xz-embedded/linux/lib/xz/)
add_library(xz_static STATIC ${XZ_SOURCES})
target_compile_options(xz_static PRIVATE -DXZ_USE_CRC64)
target_include_directories(xz_static PRIVATE ${XZ_INCLUDES})

link_libraries(cxx)
Expand Down
2 changes: 1 addition & 1 deletion external/lsplant
2 changes: 1 addition & 1 deletion magisk-loader/src/main/jni/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
cmake_minimum_required(VERSION 3.8)
cmake_minimum_required(VERSION 3.10)
project(lspd)

add_subdirectory(${CORE_ROOT} core)
Expand Down

0 comments on commit 284c723

Please sign in to comment.