mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-11-28 23:18:59 +08:00
ee71be7ea7
* [arg-router] Bump to 1.1.1 Bug fixes: * Critical issue that prevents non-CMake builds from being built Improvements: * Removed the git patch version segment and therefore the requirement on git to build. This allows for building from source without a working copy * Changes fro PR comments * Removed unused files * Added vcpkg_cmake_config_fixup * Restricted to release 'build' * Used version var for source tag
38 lines
1.2 KiB
CMake
38 lines
1.2 KiB
CMake
vcpkg_from_github(
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
REPO cmannett85/arg_router
|
|
REF v${VERSION}
|
|
HEAD_REF main
|
|
SHA512 2951a54b4fb13abd10d4de3711d4d92f180e582c21e9a0d3599cb327e799727e826ea87aecd0fd7a6203585eac5a934afe25f98488ef6b36c12be97450ab8020
|
|
)
|
|
|
|
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}"
|
|
)
|
|
|
|
file(COPY "${CURRENT_PACKAGES_DIR}/include/arg_router/arg_router-config.cmake"
|
|
"${CURRENT_PACKAGES_DIR}/include/arg_router/arg_router-config-version.cmake"
|
|
DESTINATION "${CURRENT_PACKAGES_DIR}/share/arg_router"
|
|
)
|
|
vcpkg_cmake_config_fixup(
|
|
PACKAGE_NAME arg_router
|
|
)
|
|
|
|
file(REMOVE "${CURRENT_PACKAGES_DIR}/include/arg_router/arg_router-config.cmake"
|
|
"${CURRENT_PACKAGES_DIR}/include/arg_router/arg_router-config-version.cmake"
|
|
"${CURRENT_PACKAGES_DIR}/include/arg_router/LICENSE"
|
|
"${CURRENT_PACKAGES_DIR}/include/arg_router/README.md"
|
|
)
|
|
|