vcpkg/ports/variant-lite/portfile.cmake
Martin Moene 99ee8b71a8 [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)
2019-06-04 02:21:22 -07:00

32 lines
771 B
CMake

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
)