mirror of https://github.com/microsoft/vcpkg.git
Add vcpkg_from_*** and ${PORT} usage improvements to the `vcpkg create` templates. (#24763)
* Add vcpkg_from_*** and ${PORT} usage improvements to the `vcpkg create` templates.
* Also add some more quotes.
* Back out quotes to vcpkg_cmake_config_fixup as suggested by @JackBoosY
This commit is contained in:
parent
6dbfaba039
commit
c1b768b0d6
|
|
@ -29,6 +29,12 @@
|
|||
#
|
||||
# See additional helpful variables in /docs/maintainers/vcpkg_common_definitions.md
|
||||
|
||||
# Also consider vcpkg_from_* functions if you can; the generated code here is for any web accessable
|
||||
# source archive.
|
||||
# vcpkg_from_github
|
||||
# vcpkg_from_gitlab
|
||||
# vcpkg_from_bitbucket
|
||||
# vcpkg_from_sourceforge
|
||||
vcpkg_download_distfile(ARCHIVE
|
||||
URLS "@URL@"
|
||||
FILENAME "@FILENAME@"
|
||||
|
|
@ -37,7 +43,7 @@ vcpkg_download_distfile(ARCHIVE
|
|||
|
||||
vcpkg_extract_source_archive_ex(
|
||||
OUT_SOURCE_PATH SOURCE_PATH
|
||||
ARCHIVE ${ARCHIVE}
|
||||
ARCHIVE "${ARCHIVE}"
|
||||
# (Optional) A friendly name to use instead of the filename of the archive (e.g.: a version number or tag).
|
||||
# REF 1.0.0
|
||||
# (Optional) Read the docs for how to generate patches at:
|
||||
|
|
@ -74,5 +80,5 @@ vcpkg_cmake_install()
|
|||
#}
|
||||
# vcpkg_cmake_config_fixup(CONFIG_PATH cmake TARGET_PATH share/@PORT@)
|
||||
|
||||
# # Handle copyright
|
||||
# file(INSTALL "${SOURCE_PATH}/LICENSE" DESTINATION "${CURRENT_PACKAGES_DIR}/share/@PORT@" RENAME copyright)
|
||||
# Uncomment the line below if necessary to install the license file for the port to share/${PORT}/copyright
|
||||
# file(INSTALL "${SOURCE_PATH}/LICENSE" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "@PORT@",
|
||||
"version-string": "",
|
||||
"version": "",
|
||||
"homepage": "",
|
||||
"description": "",
|
||||
"dependencies": [
|
||||
|
|
|
|||
Loading…
Reference in New Issue