diff options
author | Alexander Neundorf <neundorf@kde.org> | 2008-03-13 17:53:52 +0000 |
---|---|---|
committer | Alexander Neundorf <neundorf@kde.org> | 2008-03-13 17:53:52 +0000 |
commit | 10ac304227d3e25988e9ef4b21e1f07efa326381 (patch) | |
tree | 9753d21d836d966f45ecb1f1972c04e9ed0136d6 | |
parent | f67ec1c2927d2f908fe73a4fed7864e6858828ac (diff) | |
download | extra-cmake-modules-10ac304227d3e25988e9ef4b21e1f07efa326381.tar.gz extra-cmake-modules-10ac304227d3e25988e9ef4b21e1f07efa326381.tar.bz2 |
-under Windows, find the install location relative to the installed FindKDE4Internal.cmake instead
of the installed kde4-config.exe, this makes things easier for cross compiling (...let's wait until somebody cross compiles it to ARM or something like this)
Alex
svn path=/trunk/KDE/kdelibs/; revision=785297
-rw-r--r-- | modules/FindKDE4Internal.cmake | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/modules/FindKDE4Internal.cmake b/modules/FindKDE4Internal.cmake index 3a84c9b2..cce4679d 100644 --- a/modules/FindKDE4Internal.cmake +++ b/modules/FindKDE4Internal.cmake @@ -327,7 +327,10 @@ else (_kdeBootStrapping) # on win32 the install dir is determined on runtime not install time # KDELIBS_INSTALL_DIR and QT_INSTALL_DIR are used in KDELibsDependencies.cmake to setup # kde install paths and library dependencies - get_filename_component(_DIR ${KDE4_KDECONFIG_EXECUTABLE} PATH ) + # find it relative to the location of this file + get_filename_component(_DIR ${kde_cmake_module_dir} PATH ) + get_filename_component(_DIR ${_DIR} PATH ) + get_filename_component(_DIR ${_DIR} PATH ) get_filename_component(KDE4_INSTALL_DIR ${_DIR} PATH ) get_filename_component(_DIR ${QT_QMAKE_EXECUTABLE} PATH ) get_filename_component(QT_INSTALL_DIR ${_DIR} PATH ) |