mirror of https://github.com/microsoft/vcpkg.git
[antlr4] Fix downloading of LICENSE file
This commit is contained in:
parent
ff3b3ecb55
commit
3e0e9e3449
|
|
@ -6,6 +6,14 @@ vcpkg_download_distfile(ARCHIVE
|
|||
FILENAME "antlr4-cpp-runtime-4.6-source.zip"
|
||||
SHA512 e123c2227e41ce80da5a3758725a018690ed70a4e10c23da26c966259e6bdafa192f4363f5a7e1181ef9a47bf3cc50d6b0ca7b26c8dd2b19222a7edf54de8de2
|
||||
)
|
||||
|
||||
# license not exist in antlr folder.
|
||||
vcpkg_download_distfile(LICENSE
|
||||
URLS https://raw.githubusercontent.com/antlr/antlr4/4.6/LICENSE.txt
|
||||
FILENAME "antlr4-copyright"
|
||||
SHA512 c72ae3d5c9f3f07160405b5ca44f01116a9602d82291d6cd218fcc5ec6e8baf985e4baa2acf3d621079585385708bd171c96ef44dd808e60c40a48bc1f56c9ae
|
||||
)
|
||||
|
||||
vcpkg_extract_source_archive(${ARCHIVE})
|
||||
|
||||
vcpkg_apply_patches(
|
||||
|
|
@ -62,13 +70,6 @@ else()
|
|||
DESTINATION ${CURRENT_PACKAGES_DIR}/bin)
|
||||
endif()
|
||||
|
||||
|
||||
# license not exist in antlr folder.
|
||||
vcpkg_download_distfile(LICENSE
|
||||
URLS https://raw.githubusercontent.com/antlr/antlr4/master/LICENSE.txt
|
||||
FILENAME "antlr4-copyright"
|
||||
SHA512 c72ae3d5c9f3f07160405b5ca44f01116a9602d82291d6cd218fcc5ec6e8baf985e4baa2acf3d621079585385708bd171c96ef44dd808e60c40a48bc1f56c9ae
|
||||
)
|
||||
file(INSTALL ${LICENSE} DESTINATION ${CURRENT_PACKAGES_DIR}/share/antlr4 RENAME copyright)
|
||||
|
||||
message(STATUS "Installing done")
|
||||
Loading…
Reference in New Issue