diff options
-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") |