File: FindBerkeleyDB.cmake

package info (click to toggle)
libpam-abl 0.6.0-7.1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 460 kB
  • sloc: ansic: 4,757; sh: 47; makefile: 10
file content (32 lines) | stat: -rw-r--r-- 537 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
# -*- cmake -*-

set(DB_FIND_QUIETLY ON)
set(DB_FIND_REQUIRED ON)

if (NOT DB_INCLUDE_DIR)
  find_path(DB_INCLUDE_DIR
    NAMES
      db.h
    PATHS
      /usr/include
      /usr/local/include
      /opt/local/include
      /sw/include
  )
endif (NOT DB_INCLUDE_DIR)

if (NOT DB_LIBRARY)
  find_library(DB_LIBRARY
    NAMES
      db
    PATHS
      /usr/lib
      /usr/local/lib
      /opt/local/lib
      /sw/lib
  )
endif (NOT DB_LIBRARY)

if (NOT DB_LIBRARY)
  message(FATAL_ERROR "Could not find Berkeley DB")
endif (NOT DB_LIBRARY)