vcpkg/ports/lmdb/portfile.cmake

26 lines
781 B
CMake
Raw Normal View History

2016-12-20 09:51:53 +08:00
include(vcpkg_common_functions)
vcpkg_from_github(
OUT_SOURCE_PATH SOURCE_PATH
REPO LMDB/lmdb
REF LMDB_0.9.23
SHA512 47466a96ce288d18d489acf1abf811aa973649848a4cac31f71e1f25ea781a055ebd6616d2d630214b2df2f146f12609c82d65be0196f49d6b46a6c96464e120
HEAD_REF master
PATCHES lmdb_45a88275d2a410e683bae4ef44881e0f55fa3c4d.patch
2016-12-20 09:51:53 +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(
SOURCE_PATH ${SOURCE_PATH}/libraries/liblmdb
2016-12-20 09:51:53 +08:00
OPTIONS_DEBUG
-DLMDB_INSTALL_HEADERS=OFF
)
vcpkg_install_cmake()
vcpkg_fixup_cmake_targets(CONFIG_PATH share/lmdb)
2016-12-20 09:51:53 +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()