From 13e0a7dab6a997b0cb87c823cfb084f1ded269d2 Mon Sep 17 00:00:00 2001 From: Allen Winter Date: Sun, 19 Mar 2006 22:23:22 +0000 Subject: Support the KDEDIR environment variable for the installation prefix. So you don't have to add -DCMAKE_INSTALL_PREFIX to the cmake command line if you'd rather use good old reliable $KDEDIR. Now to document this on the wiki. CCMAIL: kde-core-devel@kde.org svn path=/trunk/KDE/kdelibs/; revision=520422 --- modules/FindKDE4Internal.cmake | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/modules/FindKDE4Internal.cmake b/modules/FindKDE4Internal.cmake index 29d47e5f..c0bf8b54 100644 --- a/modules/FindKDE4Internal.cmake +++ b/modules/FindKDE4Internal.cmake @@ -152,7 +152,7 @@ # _KDE4_PLATFORM_DEFINITIONS is used only internally -cmake_minimum_required(VERSION 2.3.3) +cmake_minimum_required(VERSION 2.3.4) #this line includes FindQt.cmake, which searches the Qt library and headers find_package(Qt4 REQUIRED) @@ -163,6 +163,12 @@ include (MacroLibrary) #add some KDE specific stuff +# set CMAKE_INSTALL_PREFIX to $KDEDIR, +if ($ENV{KDEDIR} MATCHES "[:print:]") + set(CMAKE_INSTALL_PREFIX $ENV{KDEDIR}) +endif ($ENV{KDEDIR} MATCHES "[:print:]") +message(STATUS "Setting installation dir: ${CMAKE_INSTALL_PREFIX}") + # the following are directories where stuff will be installed to set(CONFIG_INSTALL_DIR /share/config CACHE STRING "The config file install dir") -- cgit v1.2.1