2016-12-20 09:51:53 +08:00
|
|
|
include(vcpkg_common_functions)
|
|
|
|
|
2018-08-25 05:03:45 +08:00
|
|
|
vcpkg_from_github(
|
|
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
|
|
REPO LMDB/lmdb
|
2019-05-22 12:00:24 +08:00
|
|
|
REF LMDB_0.9.23
|
|
|
|
SHA512 47466a96ce288d18d489acf1abf811aa973649848a4cac31f71e1f25ea781a055ebd6616d2d630214b2df2f146f12609c82d65be0196f49d6b46a6c96464e120
|
2018-08-25 05:03:45 +08:00
|
|
|
HEAD_REF master
|
|
|
|
PATCHES lmdb_45a88275d2a410e683bae4ef44881e0f55fa3c4d.patch
|
2016-12-20 09:51:53 +08:00
|
|
|
)
|
|
|
|
|
2018-08-25 05:03:45 +08:00
|
|
|
file(COPY ${CMAKE_CURRENT_LIST_DIR}/cmake/ DESTINATION ${SOURCE_PATH}/libraries/liblmdb)
|
2016-12-20 09:51:53 +08:00
|
|
|
|
|
|
|
vcpkg_configure_cmake(
|
2018-08-25 05:03:45 +08:00
|
|
|
SOURCE_PATH ${SOURCE_PATH}/libraries/liblmdb
|
2016-12-20 09:51:53 +08:00
|
|
|
OPTIONS_DEBUG
|
|
|
|
-DLMDB_INSTALL_HEADERS=OFF
|
|
|
|
)
|
|
|
|
|
|
|
|
vcpkg_install_cmake()
|
|
|
|
|
2018-08-25 05:03:45 +08:00
|
|
|
vcpkg_fixup_cmake_targets(CONFIG_PATH share/lmdb)
|
2016-12-20 09:51:53 +08:00
|
|
|
|
2018-08-25 05:03:45 +08:00
|
|
|
file(INSTALL ${SOURCE_PATH}/libraries/liblmdb/COPYRIGHT DESTINATION ${CURRENT_PACKAGES_DIR}/share/lmdb RENAME copyright)
|
2016-12-20 09:51:53 +08:00
|
|
|
|
|
|
|
vcpkg_copy_pdbs()
|