mirror of https://github.com/axmolengine/axmol.git
cmake: eliminate warning about policy on cmake 3.1
This commit is contained in:
parent
b6201f9328
commit
86f57f11c6
|
@ -29,6 +29,12 @@ cmake_minimum_required(VERSION 2.8)
|
|||
# also from cmake's Modules dir, to not clash with per-project files.
|
||||
cmake_policy(SET CMP0017 NEW)
|
||||
|
||||
# Use new behaviour with cmake >= 3.0:
|
||||
# Only interpret if() arguments as variables or keywords when unquoted.
|
||||
if(CMAKE_VERSION VERSION_GREATER 3)
|
||||
cmake_policy(SET CMP0054 NEW)
|
||||
endif()
|
||||
|
||||
project (Cocos2d-X)
|
||||
|
||||
# The version number
|
||||
|
|
Loading…
Reference in New Issue