summaryrefslogtreecommitdiff
path: root/CMakeLists.txt
diff options
context:
space:
mode:
authorDominique Leuenberger <dominique@messiah.leuenberger.net>2010-06-01 19:02:41 +0800
committerSam Spilsbury <SmSpillaz@gmail.com>2010-06-01 19:02:41 +0800
commitd7ab3f102cdba8deb23d82b7006b495654e92657 (patch)
treee917da49527c6a67528ec3a272db0572ae9fff53 /CMakeLists.txt
parent2fb7e4227d516cd2ba8b81e411bbfc0aca127943 (diff)
downloadmobilebling-d7ab3f102cdba8deb23d82b7006b495654e92657.tar.gz
mobilebling-d7ab3f102cdba8deb23d82b7006b495654e92657.tar.bz2
[PATCH] Cmake: give more control to packagers - allowing them to specify install
Allows developers to specify libbdir, datadir and bindir, just as they are used from autotools based projects. Additionally, this removes the need for packagers to fiddle with LIB_SUFFIX.
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r--CMakeLists.txt10
1 files changed, 5 insertions, 5 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index dee32e0..9377d66 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -23,11 +23,11 @@ set (VERSION ${COMPIZ_VERSION_MAJOR}.${COMPIZ_VERSION_MINOR}.${COMPIZ_VERSION_MI
set (DECOR_INTERFACE_VERSION 20080901)
-set (prefix ${CMAKE_INSTALL_PREFIX})
-set (exec_prefix ${CMAKE_INSTALL_PREFIX}/bin)
-set (libdir ${CMAKE_INSTALL_PREFIX}/lib${LIB_SUFFIX})
-set (includedir ${CMAKE_INSTALL_PREFIX}/include)
-set (datadir ${CMAKE_INSTALL_PREFIX}/share)
+set (prefix ${CMAKE_INSTALL_PREFIX} CACHE PATH "prefix")
+set (exec_prefix ${CMAKE_INSTALL_PREFIX}/bin CACHE PATH "bindir")
+set (libdir ${CMAKE_INSTALL_PREFIX}/lib${LIB_SUFFIX} CACHE PATH "libdir")
+set (includedir ${CMAKE_INSTALL_PREFIX}/include CACHE PATH "includedir")
+set (datadir ${CMAKE_INSTALL_PREFIX}/share CACHE PATH "datadir")
set (compiz_plugindir ${libdir}/compiz)
set (compiz_imagedir ${datadir}/compiz/images)