Skip to content

Commit

Permalink
fix(cmake): fix can't build on macos (Tencent#2655)
Browse files Browse the repository at this point in the history
Co-authored-by: YoungSoo Lee <[email protected]>
  • Loading branch information
leeys888 and YoungSoo Lee authored Feb 3, 2021
1 parent f47fbcb commit c16342c
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 @@ -40,6 +40,11 @@ if(NOT CMAKE_VERSION VERSION_LESS "3.15")
cmake_policy(SET CMP0091 NEW)
endif()

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

project(ncnn)

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

0 comments on commit c16342c

Please sign in to comment.