From 898ec72ed957c5b65a8a5ab8a97f93cfa8bbe716 Mon Sep 17 00:00:00 2001 From: Jinhao Date: Mon, 8 Feb 2016 12:56:14 +0800 Subject: [PATCH] disable the CMake CMP0054 warning --- CMakeLists.txt | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index a6390b0b..b30ebcea 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -37,6 +37,12 @@ endif(BIICODE) project(nana) cmake_minimum_required(VERSION 2.8) +# Compatibility with CMake 3.1 +if(POLICY CMP0054) + # http://www.cmake.org/cmake/help/v3.1/policy/CMP0054.html + cmake_policy(SET CMP0054 OLD) +endif() + add_definitions(-DNANA_IGNORE_CONF) if(WIN32)