From 740b4c0bda23bd13e46358f50acb3a4ccb166f32 Mon Sep 17 00:00:00 2001 From: David Sansome Date: Wed, 19 Oct 2011 23:45:48 +0100 Subject: [PATCH] Fix a build error on cmake < 2.8.4 --- 3rdparty/libprojectm/CMakeLists.txt | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/3rdparty/libprojectm/CMakeLists.txt b/3rdparty/libprojectm/CMakeLists.txt index f543f0041..7702d8e5c 100644 --- a/3rdparty/libprojectm/CMakeLists.txt +++ b/3rdparty/libprojectm/CMakeLists.txt @@ -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)