Skip to content

Commit

Permalink
Compatibility with Android NDK
Browse files Browse the repository at this point in the history
If cmake is above 3.6, require 3.6 explicitly, otherwise build
fails on recent Android NDK.
  • Loading branch information
gavv committed Aug 6, 2024
1 parent b663bca commit d374d87
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,7 +1,11 @@
if(CMAKE_MAJOR_VERSION LESS 3)
cmake_minimum_required(VERSION 2.6)
else()
cmake_minimum_required(VERSION 2.8.12)
if(CMAKE_MINOR_VERSION LESS 6)
cmake_minimum_required(VERSION 2.8.12)
else()
cmake_minimum_required(VERSION 3.6)
endif()
endif()

##project
Expand Down

0 comments on commit d374d87

Please sign in to comment.