Added stuff to cmake to suppress warnings in newer versions of cmake.

--HG--
extra : convert_revision : svn%3Afdd8eb12-d10e-0410-9acb-85c331704f74/trunk%403241
This commit is contained in:
Davis King 2009-10-15 22:38:03 +00:00
parent 192e139e60
commit 49854b5b29
1 changed files with 6 additions and 0 deletions

View File

@ -5,9 +5,15 @@
# setting this makes CMake allow normal looking if else statements # setting this makes CMake allow normal looking if else statements
SET(CMAKE_ALLOW_LOOSE_LOOP_CONSTRUCTS true) SET(CMAKE_ALLOW_LOOSE_LOOP_CONSTRUCTS true)
cmake_minimum_required(VERSION 2.4) cmake_minimum_required(VERSION 2.4)
# Suppress cmake warnings about changes in new versions.
if(COMMAND cmake_policy) if(COMMAND cmake_policy)
cmake_policy(SET CMP0003 NEW) cmake_policy(SET CMP0003 NEW)
if(POLICY CMP0015)
cmake_policy(SET CMP0015 NEW)
endif()
endif() endif()