Commit 81ff15ff authored by Ronan's avatar Ronan Committed by Ronan

chore(CMakeLists.txt): set CMP0072 policy to avoid cmake warning

parent afbaf6c9
......@@ -23,6 +23,10 @@
cmake_minimum_required(VERSION 3.0)
project(mediastreamer2 VERSION 2.16.1 LANGUAGES C CXX)
# See: https://cmake.org/cmake/help/v3.12/policy/CMP0072.html
if(POLICY CMP0072)
cmake_policy(SET CMP0072 NEW)
endif()
set(MEDIASTREAMER_MAJOR_VERSION ${PROJECT_VERSION_MAJOR})
set(MEDIASTREAMER_MINOR_VERSION ${PROJECT_VERSION_MINOR})
......
......@@ -22,11 +22,6 @@
find_library(LIBM NAMES m)
# See: https://cmake.org/cmake/help/v3.12/policy/CMP0072.html
if(${CMAKE_VERSION} VERSION_GREATER "3.11")
cmake_policy(SET CMP0072 NEW)
endif()
if(ANDROID)
find_library(ANDROID_CPU_FEATURES_LIBRARY NAMES cpufeatures)
find_library(ANDROID_SUPPORT_LIBRARY NAMES support)
......
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