mirror of
https://github.com/microsoft/vcpkg.git
synced 2025-01-14 05:53:22 +08:00
[variant-lite] Add new port (1.2.2, was: 1.2.1) (#6720)
* [variant-lite] Add new port (1.2.1) * [variant-lite] Add new port (1.2.2, was: 1.2.1)
This commit is contained in:
parent
f36b356ce9
commit
99ee8b71a8
3
ports/variant-lite/CONTROL
Normal file
3
ports/variant-lite/CONTROL
Normal file
@ -0,0 +1,3 @@
|
||||
Source: variant-lite
|
||||
Version: 1.2.2
|
||||
Description: A C++17-like variant, a type-safe union for C++98, C++11 and later in a single-file header-only library
|
31
ports/variant-lite/portfile.cmake
Normal file
31
ports/variant-lite/portfile.cmake
Normal file
@ -0,0 +1,31 @@
|
||||
include(vcpkg_common_functions)
|
||||
|
||||
vcpkg_from_github(
|
||||
OUT_SOURCE_PATH SOURCE_PATH
|
||||
REPO martinmoene/variant-lite
|
||||
REF v1.2.2
|
||||
SHA512 f0a0760b858d5fdd3cbd6be29e64fdca69222c4e3f6f4f856fa99e7352ede817648c6d698ebde25dec10bf99fc304b1b5ce232c5ffd4fab12aaf444b68c04f02
|
||||
)
|
||||
|
||||
vcpkg_configure_cmake(
|
||||
SOURCE_PATH ${SOURCE_PATH}
|
||||
PREFER_NINJA
|
||||
OPTIONS
|
||||
-DVARIANT_LITE_OPT_BUILD_TESTS=OFF
|
||||
-DVARIANT_LITE_OPT_BUILD_EXAMPLES=OFF
|
||||
)
|
||||
|
||||
vcpkg_install_cmake()
|
||||
|
||||
vcpkg_fixup_cmake_targets(
|
||||
CONFIG_PATH lib/cmake/${PORT}
|
||||
)
|
||||
|
||||
file(REMOVE_RECURSE
|
||||
${CURRENT_PACKAGES_DIR}/debug
|
||||
${CURRENT_PACKAGES_DIR}/lib
|
||||
)
|
||||
|
||||
file(INSTALL
|
||||
${SOURCE_PATH}/LICENSE.txt DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright
|
||||
)
|
Loading…
x
Reference in New Issue
Block a user