mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-11-24 05:59:07 +08:00
[observer-ptr-lite] Add new port (0.3.0)
This commit is contained in:
parent
62d0697f43
commit
3e902f42b6
3
ports/observer-ptr-lite/CONTROL
Normal file
3
ports/observer-ptr-lite/CONTROL
Normal file
@ -0,0 +1,3 @@
|
||||
Source: observer-ptr-lite
|
||||
Version: 0.3.0
|
||||
Description: A C++17-like observer_ptr for C++98 and later in a single-file header-only library
|
31
ports/observer-ptr-lite/portfile.cmake
Normal file
31
ports/observer-ptr-lite/portfile.cmake
Normal file
@ -0,0 +1,31 @@
|
||||
include(vcpkg_common_functions)
|
||||
|
||||
vcpkg_from_github(
|
||||
OUT_SOURCE_PATH SOURCE_PATH
|
||||
REPO martinmoene/observer-ptr-lite
|
||||
REF v0.3.0
|
||||
SHA512 929a08946f3fe13de0456c241900d9924762bc4b963daf7f677dcc7ab2d860f5276742230079b99bd59cc320ff91f2e2eedbd56dfaa20ec35483bd56f2fc104c
|
||||
)
|
||||
|
||||
vcpkg_configure_cmake(
|
||||
SOURCE_PATH ${SOURCE_PATH}
|
||||
PREFER_NINJA
|
||||
OPTIONS
|
||||
-DNSOP_OPT_BUILD_TESTS=OFF
|
||||
-DNSOP_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…
Reference in New Issue
Block a user