diff options
| author | Alexander Neundorf <neundorf@kde.org> | 2009-04-14 20:37:12 +0000 | 
|---|---|---|
| committer | Alexander Neundorf <neundorf@kde.org> | 2009-04-14 20:37:12 +0000 | 
| commit | 0573909d5ab4123c4cb85ea019464de98aa33ca4 (patch) | |
| tree | 02731e8fb18d147510f48181beffae523dfde470 | |
| parent | 2d26fb16c057cfbd17c099bf113ec66ef1e9370c (diff) | |
| download | extra-cmake-modules-0573909d5ab4123c4cb85ea019464de98aa33ca4.tar.gz extra-cmake-modules-0573909d5ab4123c4cb85ea019464de98aa33ca4.tar.bz2 | |
-search for phonon after KDELibsDependencies.cmake has been included
Alex
svn path=/trunk/KDE/kdelibs/; revision=953958
| -rw-r--r-- | modules/FindKDE4Internal.cmake | 38 | 
1 files changed, 26 insertions, 12 deletions
| diff --git a/modules/FindKDE4Internal.cmake b/modules/FindKDE4Internal.cmake index aa6b5b24..9cd93c8f 100644 --- a/modules/FindKDE4Internal.cmake +++ b/modules/FindKDE4Internal.cmake @@ -204,11 +204,11 @@  #  #  A note on the possible values for CMAKE_BUILD_TYPE and how KDE handles  #  the flags for those buildtypes. FindKDE4Internal supports the values -#  Debug, Release, RelWithDebInfo, Profile and Debugfull +#  Debug, Release, RelWithDebInfo, Profile and Debugfull:  #  #  Release  #          optimised for speed, qDebug/kDebug turned off, no debug symbols -#  Release with debug info +#  RelWithDebInfo (Release with debug info)  #          optimised for speed, debugging symbols on (-g)  #  Debug  #          optimised but debuggable, debugging on (-g) @@ -309,11 +309,11 @@ if(NOT PERL_FOUND)     message(STATUS "Perl not found")  endif(NOT PERL_FOUND) -# only make Phonon REQUIRED if KDE4 itself is REQUIRED -find_package(Phonon ${_REQ_STRING_KDE4}) -set(KDE4_PHONON_LIBRARY ${PHONON_LIBRARY}) -set(KDE4_PHONON_LIBS ${PHONON_LIBS}) -set(KDE4_PHONON_INCLUDES ${PHONON_INCLUDES}) + +# we check for Phonon not here, but further below, i.e. after KDELibsDependencies.cmake +# has been loaded, which helps in the case that phonon is installed to the same +# directory as kdelibs. +# find_package(Phonon ${_REQ_STRING_KDE4})  # Check that we really found everything. @@ -328,11 +328,6 @@ if(NOT QT4_FOUND)     return()  endif(NOT QT4_FOUND) -if(NOT PHONON_FOUND) -   message(STATUS "KDE4 not found, because Phonon was not found") -   return() -endif(NOT PHONON_FOUND) -  if(NOT AUTOMOC4_FOUND OR NOT _automoc4_version_ok)     if(NOT AUTOMOC4_FOUND)        message(${_REQ_STRING_KDE4_MESSAGE} "KDE4 not found, because Automoc4 not found.") @@ -552,6 +547,25 @@ else (_kdeBootStrapping)  endif (_kdeBootStrapping) + +################### try to find Phonon ############################################ + +# we do this here instead of above together with the checks for Perl etc. +# since FindPhonon.cmake also uses ${KDE4_LIB_INSTALL_DIR} to check for Phonon, +# which helps with finding the phonon installed as part of kdesupport: + +# only make Phonon REQUIRED if KDE4 itself is REQUIRED +find_package(Phonon ${_REQ_STRING_KDE4}) +set(KDE4_PHONON_LIBRARY ${PHONON_LIBRARY}) +set(KDE4_PHONON_LIBS ${PHONON_LIBS}) +set(KDE4_PHONON_INCLUDES ${PHONON_INCLUDES}) + +if(NOT PHONON_FOUND) +   message(STATUS "KDE4 not found, because Phonon was not found") +   return() +endif(NOT PHONON_FOUND) + +  #####################  provide some options   ##########################################  option(KDE4_ENABLE_FINAL "Enable final all-in-one compilation") | 
