mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-23 09:27:55 +08:00
32 lines
873 B
CMake
32 lines
873 B
CMake
|
vcpkg_from_github(
|
||
|
OUT_SOURCE_PATH SOURCE_PATH
|
||
|
REPO paullouisageneau/libjuice
|
||
|
REF 92fc9e7a9d8cd19a5c5d59cbc0a11cc9f684483b
|
||
|
SHA512 80e9898c51bc98a60ca317030bc5394fda412c2bc822adc656f88bfa60b42501d4945a8692771afb8241ec7994fbe48c3e8360f919a0859cfb47288fd3292dd4
|
||
|
HEAD_REF master
|
||
|
PATCHES
|
||
|
fix-for-vcpkg.patch
|
||
|
)
|
||
|
|
||
|
vcpkg_check_features(OUT_FEATURE_OPTIONS FEATURE_OPTIONS
|
||
|
FEATURES
|
||
|
nettle USE_NETTLE
|
||
|
)
|
||
|
|
||
|
vcpkg_configure_cmake(
|
||
|
SOURCE_PATH ${SOURCE_PATH}
|
||
|
PREFER_NINJA
|
||
|
OPTIONS
|
||
|
${FEATURE_OPTIONS}
|
||
|
-DNO_TESTS=ON
|
||
|
)
|
||
|
|
||
|
vcpkg_install_cmake()
|
||
|
|
||
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
|
||
|
|
||
|
vcpkg_fixup_cmake_targets(CONFIG_PATH share/cmake/libjuice)
|
||
|
vcpkg_fixup_pkgconfig()
|
||
|
|
||
|
file(INSTALL ${SOURCE_PATH}/LICENSE DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright)
|