Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[any-lite] Add new port (v0.2.0) #6629

Merged
merged 3 commits into from
May 31, 2019
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions ports/any-lite/CONTROL
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
Source: any-lite
Version: 0.2.0
Description: A C++17-like any, a type-safe container for single values of any type for C++98, C++11 and later in a single-file header-only library
11 changes: 11 additions & 0 deletions ports/any-lite/portfile.cmake
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
include(vcpkg_common_functions)

vcpkg_from_github(
OUT_SOURCE_PATH SOURCE_PATH
REPO martinmoene/any-lite
REF v0.2.0
SHA512 703900d7bac96d41f903b6cabba4bce15ef3cf7ef0a6a66de76230498ededff110e43d68d4a3fd6996869b2edd001f69bd53039a214d06b774ce99518f384a68
)

file(INSTALL ${SOURCE_PATH}/include/nonstd/any.hpp DESTINATION ${CURRENT_PACKAGES_DIR}/include/nonstd)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

remove this line and do a proper install.
missing vcpkg_configure_cmake, vcpkg_install_cmake and vcpkg_fixup_cmake_targets
your CMakeLists.txt looks like it should be done this way!

file(INSTALL ${SOURCE_PATH}/LICENSE.txt DESTINATION ${CURRENT_PACKAGES_DIR}/share/any-lite RENAME copyright)