mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-27 18:31:15 +08:00
[mio] Add new port (#4503)
* [mio] Add new port * [mio] Clean * [mio] Use vcpkg_fixup_cmake_targets
This commit is contained in:
parent
560ff74a5c
commit
1e78b6e213
3
ports/mio/CONTROL
Normal file
3
ports/mio/CONTROL
Normal file
@ -0,0 +1,3 @@
|
||||
Source: mio
|
||||
Version: 2018-10-18-1
|
||||
Description: Cross-platform header-only C++11 library for memory mapped file IO.
|
26
ports/mio/portfile.cmake
Normal file
26
ports/mio/portfile.cmake
Normal file
@ -0,0 +1,26 @@
|
||||
# header-only library
|
||||
include(vcpkg_common_functions)
|
||||
|
||||
vcpkg_from_github(
|
||||
OUT_SOURCE_PATH SOURCE_PATH
|
||||
REPO mandreyel/mio
|
||||
REF 365a80c9acaab2a7d23a40a3add7071f9b739f85
|
||||
SHA512 a134dde60e6ada796bffc795563e3c4d4d4f3abd07ef3da7c15472951bf3f13d9fd37a05de71cd662ec5ff6e7048cfb1e7af76a35259c0ff58a53df792a6640e
|
||||
HEAD_REF master
|
||||
)
|
||||
|
||||
vcpkg_configure_cmake(
|
||||
SOURCE_PATH ${SOURCE_PATH}
|
||||
PREFER_NINJA
|
||||
OPTIONS
|
||||
-Dmio.tests=OFF
|
||||
)
|
||||
|
||||
vcpkg_install_cmake()
|
||||
|
||||
vcpkg_fixup_cmake_targets(CONFIG_PATH share/cmake/mio)
|
||||
|
||||
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug)
|
||||
|
||||
# Handle copyright
|
||||
file(INSTALL ${SOURCE_PATH}/LICENSE DESTINATION ${CURRENT_PACKAGES_DIR}/share/mio RENAME copyright)
|
Loading…
x
Reference in New Issue
Block a user