Fix a build error on cmake < 2.8.4

This commit is contained in:
David Sansome 2011-10-19 23:45:48 +01:00
parent 9a739a3346
commit 740b4c0bda
1 changed files with 5 additions and 1 deletions

View File

@ -5,7 +5,11 @@ SET(CPACK_PACKAGE_DESCRIPTION_SUMMARY "The projectM core library.")
include(CheckCXXCompilerFlag)
cmake_policy(SET CMP0005 OLD)
cmake_policy(SET CMP0017 OLD)
# This policy was only added in cmake 2.8.4
if (CMAKE_VERSION VERSION_GREATER "2.8.3")
cmake_policy(SET CMP0017 OLD)
endif (CMAKE_VERSION VERSION_GREATER "2.8.3")
set(USE_DEVIL OFF)