Skip to content

Commit

Permalink
Fix build error with NDK r27
Browse files Browse the repository at this point in the history
Enable policy CMP0057 for cmake version >= 3.3
  • Loading branch information
Galasnow committed Aug 6, 2024
1 parent 391152f commit a8a4538
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,11 @@ if(POLICY CMP0025)
cmake_policy(SET CMP0025 NEW)
endif()

if(POLICY CMP0057)
# reference from https://cmake.org/cmake/help/latest/policy/CMP0057.html
cmake_policy(SET CMP0057 NEW)
endif()

project(ncnn)

if(MSVC AND NOT CMAKE_VERSION VERSION_LESS "3.15")
Expand Down

0 comments on commit a8a4538

Please sign in to comment.