diff options
| author | Laurent Montel <montel@kde.org> | 2007-04-30 23:59:03 +0000 | 
|---|---|---|
| committer | Laurent Montel <montel@kde.org> | 2007-04-30 23:59:03 +0000 | 
| commit | 8e07947a840d119cf81e081e89e89606403792b4 (patch) | |
| tree | 9837227f40f88bd89e250fa6fe543bd7c109b67e | |
| parent | aad62da540bde71c22f647aedbb6a589049891e0 (diff) | |
| download | extra-cmake-modules-8e07947a840d119cf81e081e89e89606403792b4.tar.gz extra-cmake-modules-8e07947a840d119cf81e081e89e89606403792b4.tar.bz2 | |
Make more compliante as other cmake module
svn path=/trunk/KDE/kdelibs/; revision=659884
| -rw-r--r-- | modules/FindKonto.cmake | 21 | 
1 files changed, 17 insertions, 4 deletions
| diff --git a/modules/FindKonto.cmake b/modules/FindKonto.cmake index fa3db265..4af6348b 100644 --- a/modules/FindKonto.cmake +++ b/modules/FindKonto.cmake @@ -5,6 +5,12 @@  #  KONTO_LIBRARIES - Link these to use libKonto  # +if(KONTO_INCLUDES AND KONTO_LIBRARIES) +  # Already in cache, be silent +  set(Konto_FIND_QUIETLY TRUE) +endif(KONTO_INCLUDES AND KONTO_LIBRARIES + +  FIND_PATH(KONTO_INCLUDES     NAMES    konto/class.h @@ -25,11 +31,18 @@ FIND_LIBRARY(KONTO_LIBRARIES    ${LIB_INSTALL_DIR}  ) +  if(KONTO_INCLUDES AND KONTO_LIBRARIES) -   set(Konto_FOUND TRUE) -   message(STATUS "Found Konto: ${KONTO_LIBRARIES}") -else(KONTO_INCLUDES AND KONTO_LIBRARIES) +  set(KONTO_FOUND TRUE) +endif(KONTO_INCLUDES AND KONTO_LIBRARIES) + +if(KONTO_FOUND) +   if (NOT Konto_FIND_QUIETLY) +      message(STATUS "Found Konto: ${KONTO_LIBRARIES}") +   endif (NOT Konto_FIND_QUIETLY) +else(KONTO_FOUND)    if(Konto_FIND_REQUIRED)      message(FATAL_ERROR "Could not find Konto library.")    endif(Konto_FIND_REQUIRED) -endif(KONTO_INCLUDES AND KONTO_LIBRARIES) +endif(KONTO_FOUND) + | 
