aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexander Neundorf <neundorf@kde.org>2007-05-15 01:15:59 +0000
committerAlexander Neundorf <neundorf@kde.org>2007-05-15 01:15:59 +0000
commite21ac892370c4c7dd294ed75ccc2d1f3c5670b72 (patch)
tree1bad4c9d6138bbd191e0a991b1554fea5ff5d1ce
parent92ed9479edba821033043ce0d49fabcf02e3d25f (diff)
downloadextra-cmake-modules-e21ac892370c4c7dd294ed75ccc2d1f3c5670b72.tar.gz
extra-cmake-modules-e21ac892370c4c7dd294ed75ccc2d1f3c5670b72.tar.bz2
-add comment why find_xxx() is called twice
Alex svn path=/trunk/KDE/kdelibs/; revision=664860
-rw-r--r--modules/FindKDE4Internal.cmake4
1 files changed, 3 insertions, 1 deletions
diff --git a/modules/FindKDE4Internal.cmake b/modules/FindKDE4Internal.cmake
index 0672e5ae..d94e3ca6 100644
--- a/modules/FindKDE4Internal.cmake
+++ b/modules/FindKDE4Internal.cmake
@@ -486,8 +486,10 @@ else (_kdeBootStrapping)
# ###### TODO: this is the wrong path to look into. We need the KDE4 include dir, not the one where the current module will be installed
find_path(KDE4_INCLUDE_DIR kpassworddialog.h ${INCLUDE_INSTALL_DIR} NO_DEFAULT_PATH )
+ # at first look in LIBEXEC_INSTALL_DIR and no default paths,
+ # if this didn't succeed, the second call makes cmake search again, but in the standard paths
find_program(KDE4_KCFGC_EXECUTABLE NAME kconfig_compiler PATHS ${LIBEXEC_INSTALL_DIR} NO_DEFAULT_PATH )
- find_program(KDE4_KCFGC_EXECUTABLE NAME kconfig_compiler ) # Why do it again?
+ find_program(KDE4_KCFGC_EXECUTABLE NAME kconfig_compiler )
find_program(KDE4_MEINPROC_EXECUTABLE NAME meinproc4 PATHS ${KDE4_BIN_INSTALL_DIR} NO_DEFAULT_PATH )
find_program(KDE4_MEINPROC_EXECUTABLE NAME meinproc4 )