From e6988f62f6c57be9ea80d277460549f501d254bf Mon Sep 17 00:00:00 2001 From: Gustav Date: Mon, 29 Dec 2014 16:18:17 +0100 Subject: [PATCH] Fixed cmake 3x cmp0048 warning --- contrib/zlib/CMakeLists.txt | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/contrib/zlib/CMakeLists.txt b/contrib/zlib/CMakeLists.txt index 5d7b58c43..c05509fdf 100644 --- a/contrib/zlib/CMakeLists.txt +++ b/contrib/zlib/CMakeLists.txt @@ -1,7 +1,11 @@ cmake_minimum_required(VERSION 2.4.4) set(CMAKE_ALLOW_LOOSE_LOOP_CONSTRUCTS ON) +# use the old project command http://www.cmake.org/cmake/help/v3.0/policy/CMP0048.html +cmake_policy(PUSH) +cmake_policy(SET CMP0048 OLD) project(zlib C) +cmake_policy(POP) set(VERSION "1.2.8")