mirror of
https://github.com/microsoft/vcpkg.git
synced 2025-01-20 12:06:13 +08:00
e4040c68c9
* [arg-router] Update to v1.2.0 Bug fixes * Issue 254, passing no args to short_form_expander_t::pre_parse_phase(..) causes segfault * Issue 255, policy_unique_from_owner_parent_to_mode_or_root not working Improvements * Corrected CMake package so you don't need to manually set the include directory anymore (Issue 257) * Node can be instantiated with bare compile-time strings and they are automatically mapped to the appropriate policy (Issue 256) * Improved help output formatting documentation (Issue 258) * Removed invalid dependency from usage file * Used CONFIG_PATH in vcpkg_cmake_config_fixup() * Replaced lost newline
44 lines
1.2 KiB
CMake
44 lines
1.2 KiB
CMake
vcpkg_from_github(
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
REPO cmannett85/arg_router
|
|
REF v${VERSION}
|
|
HEAD_REF main
|
|
SHA512 69448b9343247679a7f288c4b69819df68ba8893d3537b2bdfedf77e2c4f8d39696c68f7716eda108810a7b951f2fec57d329d4113623edf2d28c55e3e68329f
|
|
)
|
|
|
|
set(VCPKG_BUILD_TYPE release) # header-only port
|
|
vcpkg_cmake_configure(
|
|
SOURCE_PATH "${SOURCE_PATH}"
|
|
OPTIONS
|
|
-DINSTALLATION_ONLY=ON
|
|
)
|
|
|
|
vcpkg_cmake_install()
|
|
vcpkg_install_copyright(
|
|
FILE_LIST "${SOURCE_PATH}/LICENSE"
|
|
)
|
|
file(COPY "${CMAKE_CURRENT_LIST_DIR}/usage"
|
|
DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}"
|
|
)
|
|
|
|
set(CMAKE_FILE_DIR "lib/cmake/arg_router")
|
|
if (WIN32)
|
|
set(CMAKE_FILE_DIR "cmake")
|
|
elseif (APPLE)
|
|
set(CMAKE_FILE_DIR "arg_router.framework/Resources/CMake")
|
|
endif()
|
|
|
|
vcpkg_cmake_config_fixup(
|
|
PACKAGE_NAME arg_router
|
|
CONFIG_PATH "${CMAKE_FILE_DIR}"
|
|
)
|
|
|
|
string(FIND "${CMAKE_FILE_DIR}" "/" CMAKE_FILE_DIR_SLASH_IDX)
|
|
string(SUBSTRING "${CMAKE_FILE_DIR}" 0 ${CMAKE_FILE_DIR_SLASH_IDX} CMAKE_FILE_DIR_ROOT)
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/${CMAKE_FILE_DIR_ROOT}")
|
|
|
|
file(REMOVE "${CURRENT_PACKAGES_DIR}/include/arg_router/LICENSE"
|
|
"${CURRENT_PACKAGES_DIR}/include/arg_router/README.md"
|
|
)
|
|
|