From 13b769c326f2087c87cdb78ab2fae47ec17e4b18 Mon Sep 17 00:00:00 2001 From: Laurent Montel Date: Tue, 30 May 2006 09:02:38 +0000 Subject: Move cmake duplicate check here: -> FindTagLib: need by kdemultimedia/amarok -> FindPostgreSQL: need by koffice-kexi/amarok -> FindMySQL: need by koffice-kexi/amarok -> FindMusicBrainz: need by amarok/kdemultimedia -> FindUSB: need by kdebase/amarok -> FindBerkeleyDB: need by kbabel/kdevelop -> FindRUBY: need by koffice-kross/amarok I will remove them from kde module after new snapshot (next monday) svn path=/trunk/KDE/kdelibs/; revision=546487 --- modules/FindBerkeleyDB.cmake | 39 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 modules/FindBerkeleyDB.cmake (limited to 'modules/FindBerkeleyDB.cmake') diff --git a/modules/FindBerkeleyDB.cmake b/modules/FindBerkeleyDB.cmake new file mode 100644 index 00000000..640e6cf3 --- /dev/null +++ b/modules/FindBerkeleyDB.cmake @@ -0,0 +1,39 @@ +# - Try to find Berkeley DB +# Once done this will define +# +# BERKELEY_DB_FOUND - system has Berkeley DB +# BERKELEY_DB_INCLUDE_DIR - the Berkeley DB include directory +# BERKELEY_DB_LIBRARIES - Link these to use Berkeley DB +# BERKELEY_DB_DEFINITIONS - Compiler switches required for using Berkeley DB +# + + +FIND_PATH(BERKELEY_DB_INCLUDE_DIR db.h + /usr/include/ + /usr/include/db4 + /usr/local/include/db4 +) + +FIND_LIBRARY(BERKELEY_DB_LIBRARIES NAMES db + PATHS + /usr/lib + /usr/local/lib +) + +IF(BERKELEY_DB_INCLUDE_DIR AND BERKELEY_DB_LIBRARIES) + SET(BERKELEY_DB_FOUND TRUE) +ENDIF(BERKELEY_DB_INCLUDE_DIR AND BERKELEY_DB_LIBRARIES) + +IF(BERKELEY_DB_FOUND) + IF(NOT Berkeley_DB_FIND_QUIETLY) + MESSAGE(STATUS "Found Berkeley DB: ${BERKELEY_DB_LIBRARIES}") + ENDIF(NOT Berkeley_DB_FIND_QUIETLY) +ELSE(BERKELEY_DB_FOUND) + IF(Berkeley_DB_FIND_REQUIRED) + MESSAGE(FATAL_ERROR "Could not find Berkeley DB >= 4.1") + ENDIF(Berkeley_DB_FIND_REQUIRED) +ENDIF(BERKELEY_DB_FOUND) + +# show the BERKELEY_DB_INCLUDE_DIR and BERKELEY_DB_LIBRARIES variables only in the advanced view +MARK_AS_ADVANCED(BERKELEY_DB_INCLUDE_DIR BERKELEY_DB_LIBRARIES ) + -- cgit v1.2.1 From c778596920e0d5357f216c885e35b4f97d371a23 Mon Sep 17 00:00:00 2001 From: Alexander Neundorf Date: Sat, 9 Sep 2006 10:18:35 +0000 Subject: added copyright notice everywhere. Now they all are BSD-licensed, as copyright holder I inserted everywhere the one who added it to svn (or Kitware if it is an enhanced copy from taken cmake) Some developers committed quite often but were not the ones who added the file, if you feel you have also copyright on the file add your name in the specific file. Copyright holders: CCMAIL: montel@kde.org CCMAIL: toscano.pino@tiscali.it CCMAIL: adymo@kdevelop.org CCMAIL: ranger@befunk.com CCMAIL: zack@kde.org CCMAIL: caslav.ilic@gmx.net CCMAIL: syntheticpp@yahoo.com CCMAIL: js@iidea.pl CCMAIL: michael.larouche@kdemail.net CCMAIL: ossi@kde.org CCMAIL: faure@kde.org Committers, but no files added so that they are not listed as copyright holders: CCMAIL: ch.ehrlicher@gmx.de CCMAIL: winter@kde.org CCMAIL: ralf.habacker@freenet.de CCMAIL: moura@kdewebdev.org CCMAIL: kde-buildsystem@kde.org Alex svn path=/trunk/KDE/kdelibs/; revision=582410 --- modules/FindBerkeleyDB.cmake | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'modules/FindBerkeleyDB.cmake') diff --git a/modules/FindBerkeleyDB.cmake b/modules/FindBerkeleyDB.cmake index 640e6cf3..2a8ba293 100644 --- a/modules/FindBerkeleyDB.cmake +++ b/modules/FindBerkeleyDB.cmake @@ -6,7 +6,10 @@ # BERKELEY_DB_LIBRARIES - Link these to use Berkeley DB # BERKELEY_DB_DEFINITIONS - Compiler switches required for using Berkeley DB # - +# Copyright (c) 2006, Alexander Dymo, +# +# Redistribution and use is allowed according to the terms of the BSD license. +# For details see the accompanying COPYING-CMAKE-SCRIPTS file. FIND_PATH(BERKELEY_DB_INCLUDE_DIR db.h /usr/include/ -- cgit v1.2.1 From b934aae5f61f38183cd62a459c61b2625e71b52c Mon Sep 17 00:00:00 2001 From: Alexander Neundorf Date: Fri, 3 Aug 2007 01:13:21 +0000 Subject: remove unnecessary default search paths Alex svn path=/trunk/KDE/kdelibs/; revision=695813 --- modules/FindBerkeleyDB.cmake | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) (limited to 'modules/FindBerkeleyDB.cmake') diff --git a/modules/FindBerkeleyDB.cmake b/modules/FindBerkeleyDB.cmake index 2a8ba293..e68af609 100644 --- a/modules/FindBerkeleyDB.cmake +++ b/modules/FindBerkeleyDB.cmake @@ -12,16 +12,11 @@ # For details see the accompanying COPYING-CMAKE-SCRIPTS file. FIND_PATH(BERKELEY_DB_INCLUDE_DIR db.h - /usr/include/ /usr/include/db4 /usr/local/include/db4 ) -FIND_LIBRARY(BERKELEY_DB_LIBRARIES NAMES db - PATHS - /usr/lib - /usr/local/lib -) +FIND_LIBRARY(BERKELEY_DB_LIBRARIES NAMES db ) IF(BERKELEY_DB_INCLUDE_DIR AND BERKELEY_DB_LIBRARIES) SET(BERKELEY_DB_FOUND TRUE) -- cgit v1.2.1 From a0ac74e03721c2b1441a733d57377f177ceff7a3 Mon Sep 17 00:00:00 2001 From: Laurent Montel Date: Mon, 20 Aug 2007 06:51:13 +0000 Subject: Use FIND_PACKAGE_HANDLE_STANDARD_ARGS Fix typo svn path=/trunk/KDE/kdelibs/; revision=702150 --- modules/FindBerkeleyDB.cmake | 16 ++-------------- 1 file changed, 2 insertions(+), 14 deletions(-) (limited to 'modules/FindBerkeleyDB.cmake') diff --git a/modules/FindBerkeleyDB.cmake b/modules/FindBerkeleyDB.cmake index e68af609..07a39a17 100644 --- a/modules/FindBerkeleyDB.cmake +++ b/modules/FindBerkeleyDB.cmake @@ -18,20 +18,8 @@ FIND_PATH(BERKELEY_DB_INCLUDE_DIR db.h FIND_LIBRARY(BERKELEY_DB_LIBRARIES NAMES db ) -IF(BERKELEY_DB_INCLUDE_DIR AND BERKELEY_DB_LIBRARIES) - SET(BERKELEY_DB_FOUND TRUE) -ENDIF(BERKELEY_DB_INCLUDE_DIR AND BERKELEY_DB_LIBRARIES) - -IF(BERKELEY_DB_FOUND) - IF(NOT Berkeley_DB_FIND_QUIETLY) - MESSAGE(STATUS "Found Berkeley DB: ${BERKELEY_DB_LIBRARIES}") - ENDIF(NOT Berkeley_DB_FIND_QUIETLY) -ELSE(BERKELEY_DB_FOUND) - IF(Berkeley_DB_FIND_REQUIRED) - MESSAGE(FATAL_ERROR "Could not find Berkeley DB >= 4.1") - ENDIF(Berkeley_DB_FIND_REQUIRED) -ENDIF(BERKELEY_DB_FOUND) - +include(FindPackageHandleStandardArgs) +find_package_handle_standard_args(Berkeley "Could not find Berkeley DB >= 4.1" BERKELEY_DB_INCLUDE_DIR BERKELEY_DB_LIBRARIES # show the BERKELEY_DB_INCLUDE_DIR and BERKELEY_DB_LIBRARIES variables only in the advanced view MARK_AS_ADVANCED(BERKELEY_DB_INCLUDE_DIR BERKELEY_DB_LIBRARIES ) -- cgit v1.2.1 From 0e04b2ba503d2dcf3b441e7af64763ba0fe6d8ec Mon Sep 17 00:00:00 2001 From: Laurent Montel Date: Mon, 20 Aug 2007 09:07:53 +0000 Subject: Missing a ')' svn path=/trunk/KDE/kdelibs/; revision=702247 --- modules/FindBerkeleyDB.cmake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'modules/FindBerkeleyDB.cmake') diff --git a/modules/FindBerkeleyDB.cmake b/modules/FindBerkeleyDB.cmake index 07a39a17..68e4fb63 100644 --- a/modules/FindBerkeleyDB.cmake +++ b/modules/FindBerkeleyDB.cmake @@ -19,7 +19,7 @@ FIND_PATH(BERKELEY_DB_INCLUDE_DIR db.h FIND_LIBRARY(BERKELEY_DB_LIBRARIES NAMES db ) include(FindPackageHandleStandardArgs) -find_package_handle_standard_args(Berkeley "Could not find Berkeley DB >= 4.1" BERKELEY_DB_INCLUDE_DIR BERKELEY_DB_LIBRARIES +find_package_handle_standard_args(Berkeley "Could not find Berkeley DB >= 4.1" BERKELEY_DB_INCLUDE_DIR BERKELEY_DB_LIBRARIE # show the BERKELEY_DB_INCLUDE_DIR and BERKELEY_DB_LIBRARIES variables only in the advanced view MARK_AS_ADVANCED(BERKELEY_DB_INCLUDE_DIR BERKELEY_DB_LIBRARIES ) -- cgit v1.2.1 From 2abb23d445acbc16177f684a000cd12c62ee1c1f Mon Sep 17 00:00:00 2001 From: Laurent Montel Date: Mon, 20 Aug 2007 09:10:05 +0000 Subject: SVN_SILENT: I hate my keyboard svn path=/trunk/KDE/kdelibs/; revision=702248 --- modules/FindBerkeleyDB.cmake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'modules/FindBerkeleyDB.cmake') diff --git a/modules/FindBerkeleyDB.cmake b/modules/FindBerkeleyDB.cmake index 68e4fb63..18d475bd 100644 --- a/modules/FindBerkeleyDB.cmake +++ b/modules/FindBerkeleyDB.cmake @@ -19,7 +19,7 @@ FIND_PATH(BERKELEY_DB_INCLUDE_DIR db.h FIND_LIBRARY(BERKELEY_DB_LIBRARIES NAMES db ) include(FindPackageHandleStandardArgs) -find_package_handle_standard_args(Berkeley "Could not find Berkeley DB >= 4.1" BERKELEY_DB_INCLUDE_DIR BERKELEY_DB_LIBRARIE +find_package_handle_standard_args(Berkeley "Could not find Berkeley DB >= 4.1" BERKELEY_DB_INCLUDE_DIR BERKELEY_DB_LIBRARIES) # show the BERKELEY_DB_INCLUDE_DIR and BERKELEY_DB_LIBRARIES variables only in the advanced view MARK_AS_ADVANCED(BERKELEY_DB_INCLUDE_DIR BERKELEY_DB_LIBRARIES ) -- cgit v1.2.1 From 814455b7ad321c88e730662fda58261087b72e72 Mon Sep 17 00:00:00 2001 From: Alexander Neundorf Date: Mon, 18 Feb 2008 19:06:32 +0000 Subject: some improvements to the docs: -some modules were not at all documented, only few are left now -the copyright message doesn't have to be printed for every module in the docs -fix FindKorundom.cmake, it didn't follow the style guide and had typos (e.g. Korumdum_FOUND instead of KORUNDUM_FOUND) Alex (will commit modified FindKDE4Internal.cmake after Christians commit) svn path=/trunk/KDE/kdelibs/; revision=776742 --- modules/FindBerkeleyDB.cmake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'modules/FindBerkeleyDB.cmake') diff --git a/modules/FindBerkeleyDB.cmake b/modules/FindBerkeleyDB.cmake index 18d475bd..749f1664 100644 --- a/modules/FindBerkeleyDB.cmake +++ b/modules/FindBerkeleyDB.cmake @@ -5,7 +5,7 @@ # BERKELEY_DB_INCLUDE_DIR - the Berkeley DB include directory # BERKELEY_DB_LIBRARIES - Link these to use Berkeley DB # BERKELEY_DB_DEFINITIONS - Compiler switches required for using Berkeley DB -# + # Copyright (c) 2006, Alexander Dymo, # # Redistribution and use is allowed according to the terms of the BSD license. -- cgit v1.2.1 From 8773fa29dcfeddc45d4255768f940d5776e9f5c3 Mon Sep 17 00:00:00 2001 From: Alexander Neundorf Date: Tue, 24 Aug 2010 19:49:35 +0000 Subject: -use consistently all lowercase here Alex svn path=/trunk/KDE/kdelibs/; revision=1167505 --- modules/FindBerkeleyDB.cmake | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'modules/FindBerkeleyDB.cmake') diff --git a/modules/FindBerkeleyDB.cmake b/modules/FindBerkeleyDB.cmake index 749f1664..021d9428 100644 --- a/modules/FindBerkeleyDB.cmake +++ b/modules/FindBerkeleyDB.cmake @@ -11,15 +11,15 @@ # Redistribution and use is allowed according to the terms of the BSD license. # For details see the accompanying COPYING-CMAKE-SCRIPTS file. -FIND_PATH(BERKELEY_DB_INCLUDE_DIR db.h +find_path(BERKELEY_DB_INCLUDE_DIR db.h /usr/include/db4 /usr/local/include/db4 ) -FIND_LIBRARY(BERKELEY_DB_LIBRARIES NAMES db ) +find_library(BERKELEY_DB_LIBRARIES NAMES db ) include(FindPackageHandleStandardArgs) find_package_handle_standard_args(Berkeley "Could not find Berkeley DB >= 4.1" BERKELEY_DB_INCLUDE_DIR BERKELEY_DB_LIBRARIES) # show the BERKELEY_DB_INCLUDE_DIR and BERKELEY_DB_LIBRARIES variables only in the advanced view -MARK_AS_ADVANCED(BERKELEY_DB_INCLUDE_DIR BERKELEY_DB_LIBRARIES ) +mark_as_advanced(BERKELEY_DB_INCLUDE_DIR BERKELEY_DB_LIBRARIES ) -- cgit v1.2.1