Skip to content

Commit 2523577

Browse files
author
Alejandro Paredes
authored
Add conditional linking options for NDK version
1 parent 8e0f5a5 commit 2523577

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

android/CMakeLists.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,10 @@ include_directories(
2121

2222
find_library(LOG_LIB log)
2323

24+
if(CMAKE_ANDROID_NDK_VERSION VERSION_LESS "27")
25+
target_link_options(${PACKAGE_NAME} PRIVATE "-Wl,-z,max-page-size=16384")
26+
endif()
27+
2428
# Link all libraries together
2529
target_link_libraries(
2630
${PACKAGE_NAME}

0 commit comments

Comments
 (0)