Warning, /pim/sink/cmake/modules/FindLMDB.cmake is written in an unsupported language. File is not indexed.
0001 # Try to find the LMBD libraries and headers 0002 # LMDB_FOUND - system has LMDB lib 0003 # LMDB_INCLUDE_DIR - the LMDB include directory 0004 # LMDB_LIBRARIES - Libraries needed to use LMDB 0005 0006 # FindCWD based on FindGMP by: 0007 # Copyright (c) 2006, Laurent Montel, <montel@kde.org> 0008 # 0009 # Redistribution and use is allowed according to the terms of the BSD license. 0010 0011 # Adapted from FindCWD by: 0012 # Copyright 2013 Conrad Steenberg <conrad.steenberg@gmail.com> 0013 # Aug 31, 2013 0014 0015 # Adapted from FindLMDB by: 0016 # Copyright 2015 Anatoly Baksheev <anatoly.baksheev@gmail.com> 0017 # Mar 03, 2017 0018 0019 find_path(LMDB_INCLUDE_DIR NAMES lmdb.h PATHS "$ENV{LMDB_DIR}/include") 0020 find_library(LMDB_LIBRARIES NAMES lmdb PATHS "$ENV{LMDB_DIR}/lib" ) 0021 0022 include(FindPackageHandleStandardArgs) 0023 find_package_handle_standard_args(LMDB DEFAULT_MSG LMDB_INCLUDE_DIR LMDB_LIBRARIES) 0024 0025 if(LMDB_FOUND) 0026 mark_as_advanced(LMDB_INCLUDE_DIR LMDB_LIBRARIES) 0027 0028 set(LMDB_VERSION "${MDB_VERSION_MAJOR}.${MDB_VERSION_MINOR}.${MDB_VERSION_PATCH}") 0029 endif()