aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/cmake/BerkeleyDB.cmake
blob: de627638a32ddf4b296140793384ba910a67d16b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
# -*- cmake -*-

set(DB_FIND_QUIETLY ON)
set(DB_FIND_REQUIRED ON)

if (STANDALONE)
  include(FindBerkeleyDB)
else (STANDALONE)
  if (LINUX)
	# Need to add dependency pthread explicitely to support ld.gold.
    set(DB_LIBRARIES db-4.2 pthread)
  else (LINUX)
    set(DB_LIBRARIES db-4.2)
  endif (LINUX)
  set(DB_INCLUDE_DIRS ${LIBS_PREBUILT_DIR}/include)
endif (STANDALONE)