PageRenderTime 20ms CodeModel.GetById 14ms app.highlight 2ms RepoModel.GetById 1ms app.codeStats 1ms

/indra/cmake/BerkeleyDB.cmake

https://bitbucket.org/lindenlab/viewer-beta/
CMake | 17 lines | 13 code | 2 blank | 2 comment | 4 complexity | 2a817629d413e753d2534d573dcc32e1 MD5 | raw file
 1# -*- cmake -*-
 2
 3set(DB_FIND_QUIETLY ON)
 4set(DB_FIND_REQUIRED ON)
 5
 6if (STANDALONE)
 7  include(FindBerkeleyDB)
 8else (STANDALONE)
 9  if (LINUX)
10    # Need to add dependency pthread explicitely to support ld.gold.
11    use_prebuilt_binary(db)
12    set(DB_LIBRARIES db-5.1 pthread)
13  else (LINUX)
14    set(DB_LIBRARIES db-4.2)
15  endif (LINUX)
16  set(DB_INCLUDE_DIRS ${LIBS_PREBUILT_DIR}/include)
17endif (STANDALONE)