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)