vcpkg/ports/libpmemobj-cpp/portfile.cmake

37 lines
1.2 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 9599f724d4edc3a3d973bac14eeebdc1bc31d327 #v1.13.0
SHA512 ae1f8ed8aecdc35e9e78c957fcd154e43c7bcb5bf5cf3e5b23be3e95d21de754dbbd9b6549bd6c7991fad24492b08421df338c3706ab0157c31ebc88b65fa4fe
2019-06-26 02:01:19 +08:00
HEAD_REF master
PATCHES
fixlibpmemobj-cpp.patch
)
vcpkg_check_features(OUT_FEATURE_OPTIONS FEATURE_OPTIONS
FEATURES
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_cmake_configure(
SOURCE_PATH "${SOURCE_PATH}"
DISABLE_PARALLEL_CONFIGURE
OPTIONS ${FEATURE_OPTIONS}
2019-06-26 02:01:19 +08:00
-DBUILD_TESTS=OFF
-DBUILD_EXAMPLES=OFF
-DBUILD_DOC=OFF
-DTESTS_USE_VALGRIND=OFF
2019-06-26 02:01:19 +08:00
)
vcpkg_cmake_install()
2019-06-26 02:01:19 +08:00
vcpkg_cmake_config_fixup(CONFIG_PATH lib/libpmemobj++/cmake)
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/lib")
2019-06-26 02:01:19 +08:00
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug" "${CURRENT_PACKAGES_DIR}/lib/libpmemobj++")
file(INSTALL "${SOURCE_PATH}/LICENSE" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)