cmake: add policy CMP0017 to fix warnings on 2.8.8 cmake and set it to NEW for predictable include behaviour

This commit is contained in:
Vladimir Timofeev 2014-11-25 14:19:49 +03:00
parent a8695b2f86
commit 4e048951ff
1 changed files with 5 additions and 0 deletions

View File

@ -24,6 +24,11 @@
# ****************************************************************************/
cmake_minimum_required(VERSION 2.8)
# It ensures that when Find*.cmake files included from cmake's Modules dir
# include another *.cmake file with relative path, that file will be included
# also from cmake's Modules dir, to not clash with per-project files.
cmake_policy(SET CMP0017 NEW)
project (Cocos2d-X)
# The version number