Stop newer CMake's from warning about OLD policy

This commit is contained in:
Henry Schreiner
2018-04-11 17:39:38 +02:00
committed by Victor Zverovich
parent 5c0d7ee157
commit ea2cf449f7

View File

@ -3,7 +3,7 @@ message(STATUS "CMake version: ${CMAKE_VERSION}")
cmake_minimum_required(VERSION 2.8.12)
if (POLICY CMP0048) # Version variables
cmake_policy(SET CMP0048 OLD)
cmake_policy(SET CMP0048 NEW)
endif ()
if (POLICY CMP0063) # Visibility