vcpkg/ports/libpmemobj-cpp/portfile.cmake

35 lines
1.1 KiB
CMake
Raw Normal View History

2019-06-26 02:01:19 +08:00
vcpkg_from_github(
OUT_SOURCE_PATH SOURCE_PATH
REPO pmem/libpmemobj-cpp
REF 8ff8c542a87a6ac9cb52c5c04def66d844c290cb #v1.10
SHA512 09ee9a027fee74d6352ec92445fb5c688b7cc28bc30258d4a9efc250242a1c43f6c55c07f9e43e72d50e09f93dc8eeaffabec9e205f2af2899bde63b7fbdfca1
2019-06-26 02:01:19 +08:00
HEAD_REF master
PATCHES
fixlibpmemobj-cpp.patch
)
vcpkg_check_features(OUT_FEATURE_OPTIONS FEATURE_OPTIONS
benchmark BUILD_BENCHMARKS
2019-06-26 02:01:19 +08:00
)
vcpkg_find_acquire_program(PERL)
get_filename_component(PERL_EXE_PATH ${PERL} DIRECTORY)
vcpkg_add_to_path(${PERL_EXE_PATH})
2019-06-26 02:01:19 +08:00
vcpkg_configure_cmake(
SOURCE_PATH ${SOURCE_PATH}
PREFER_NINJA
DISABLE_PARALLEL_CONFIGURE
OPTIONS ${FEATURE_OPTIONS}
2019-06-26 02:01:19 +08:00
-DBUILD_TESTS=OFF
-DBUILD_EXAMPLES=OFF
-DBUILD_DOC=OFF
)
vcpkg_install_cmake()
vcpkg_fixup_cmake_targets(CONFIG_PATH lib/libpmemobj++/cmake TARGET_PATH share/libpmemobj++)
2019-06-26 02:01:19 +08:00
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug ${CURRENT_PACKAGES_DIR}/lib/libpmemobj++)
2019-06-26 02:01:19 +08:00
file(INSTALL ${SOURCE_PATH}/LICENSE DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright)