Commit 90d72aed authored by Ronan's avatar Ronan

chore(CMakeLists.txt): check cmake version before set CMP0072 policy

parent 3d225696
......@@ -23,7 +23,9 @@
find_library(LIBM NAMES m)
# See: https://cmake.org/cmake/help/v3.12/policy/CMP0072.html
cmake_policy(SET CMP0072 NEW)
if(${CMAKE_VERSION} VERSION_GREATER "3.11")
cmake_policy(SET CMP0072 NEW)
endif()
if(ANDROID)
find_library(ANDROID_CPU_FEATURES_LIBRARY NAMES cpufeatures)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment