feat(CMakeLists.txt): set CMP0071 policy to NEW to avoid cmake warning

This commit is contained in:
Ronan Abhamon 2018-01-26 15:09:02 +01:00
parent 90d505cd62
commit e122e04b59

View file

@ -45,6 +45,11 @@ include(CheckCXXCompilerFlag)
set(CMAKE_AUTOMOC ON)
set(CMAKE_INCLUDE_CURRENT_DIR ON)
# Avoid cmake warning if CMP0071 is not set.
if (POLICY CMP0071)
cmake_policy(SET CMP0071 NEW)
endif ()
if (NOT WIN32)
check_cxx_compiler_flag("-Wsuggest-override" SUGGEST_OVERRIDE)
set(CUSTOM_FLAGS "\