disable the CMake CMP0054 warning

This commit is contained in:
Jinhao 2016-02-08 12:56:14 +08:00
parent e7cae6d17a
commit 898ec72ed9

View File

@ -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)