Browse Source
Fix build error with NDK r27 (#5615)
Enable policy CMP0057 for cmake version >= 3.3
tags/20240820
Galasnow
GitHub
1 year ago
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with
5 additions and
0 deletions
-
CMakeLists.txt
|
|
|
@@ -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") |
|
|
|
|