Skip to content

Commit

Permalink
cmake: eliminate warning about policy on cmake 3.1
Browse files Browse the repository at this point in the history
  • Loading branch information
Vladimir Timofeev authored and vovkasm committed Jan 26, 2015
1 parent b6201f9 commit 86f57f1
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 86f57f1

Please sign in to comment.