Skip to content

Commit

Permalink
Fix build error with NDK r27 (#5615)
Browse files Browse the repository at this point in the history
Enable policy CMP0057 for cmake version >= 3.3
  • Loading branch information
Galasnow authored Aug 8, 2024
1 parent 391152f commit 5b5c1fd
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 5b5c1fd

Please sign in to comment.