[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: KDE/kdelibs/cmake/modules
From: Laurent Montel <montel () kde ! org>
Date: 2007-04-30 23:59:03
Message-ID: 1177977543.989429.8278.nullmailer () svn ! kde ! org
[Download RAW message or body]
SVN commit 659884 by mlaurent:
Make more compliante as other cmake module
M +17 -4 FindKonto.cmake
--- trunk/KDE/kdelibs/cmake/modules/FindKonto.cmake #659883:659884
@@ -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 @@
${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)
+
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic