summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDennis Kasprzyk <onestone@opencompositing.org>2008-04-10 16:33:38 +0200
committerDennis Kasprzyk <onestone@opencompositing.org>2008-04-10 16:33:38 +0200
commitd978af1cbeaf24b43ca82ad00c226d1368399bb9 (patch)
treedfda7df1c43033d356875c940b94f67fa981892b
parent9e7551c4fca09270695415dc11fa4b31c2aef9ee (diff)
downloadmakefile-d978af1cbeaf24b43ca82ad00c226d1368399bb9.tar.gz
makefile-d978af1cbeaf24b43ca82ad00c226d1368399bb9.tar.bz2
cmake_policy is only available in cmake >= 2.6
-rw-r--r--cmake/CompizFusion.cmake6
1 files changed, 6 insertions, 0 deletions
diff --git a/cmake/CompizFusion.cmake b/cmake/CompizFusion.cmake
index 6f7f6f8..d8bf762 100644
--- a/cmake/CompizFusion.cmake
+++ b/cmake/CompizFusion.cmake
@@ -62,6 +62,12 @@
#
#######################################################################
+if (CMAKE_MAJOR_VERSION GREATER 2 OR CMAKE_MAJOR_VERSION EQUAL 2 AND CMAKE_MINOR_VERSION GREATER 5)
+cmake_policy (VERSION 2.4)
+cmake_policy(SET CMP0000 OLD)
+cmake_policy(SET CMP0005 OLD)
+endif (CMAKE_MAJOR_VERSION GREATER 2 OR CMAKE_MAJOR_VERSION EQUAL 2 AND CMAKE_MINOR_VERSION GREATER 5)
+
# add install prefix to pkgconfig search path
if ("" STREQUAL "$ENV{PKG_CONFIG_PATH}")
set (ENV{PKG_CONFIG_PATH} "${CMAKE_INSTALL_PREFIX}/lib/pkgconfig:${CMAKE_INSTALL_PREFIX}/share/pkgconfig")