diff options
author | Allen Winter <winter@kde.org> | 2006-03-19 22:23:22 +0000 |
---|---|---|
committer | Allen Winter <winter@kde.org> | 2006-03-19 22:23:22 +0000 |
commit | 13e0a7dab6a997b0cb87c823cfb084f1ded269d2 (patch) | |
tree | 1ce0a1e7f20357c2c248e413c6ba93b111702c61 | |
parent | 15d2153c1b6cbc89e00a7b43df2d69678babc93a (diff) | |
download | extra-cmake-modules-13e0a7dab6a997b0cb87c823cfb084f1ded269d2.tar.gz extra-cmake-modules-13e0a7dab6a997b0cb87c823cfb084f1ded269d2.tar.bz2 |
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
-rw-r--r-- | modules/FindKDE4Internal.cmake | 8 |
1 files changed, 7 insertions, 1 deletions
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") |