aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ports/boost-di/portfile.cmake7
1 files changed, 6 insertions, 1 deletions
diff --git a/ports/boost-di/portfile.cmake b/ports/boost-di/portfile.cmake
index e09c813c2..83ea6afe9 100644
--- a/ports/boost-di/portfile.cmake
+++ b/ports/boost-di/portfile.cmake
@@ -14,4 +14,9 @@ file(INSTALL ${SOURCE_PATH}/include/boost
# boost-di license does not exist in source folder.
# it shares the boost license.
-file(DOWNLOAD http://www.boost.org/LICENSE_1_0.txt ${CURRENT_PACKAGES_DIR}/share/boost-di/copyright) \ No newline at end of file
+vcpkg_download_distfile(LICENSE
+ URLS http://www.boost.org/LICENSE_1_0.txt
+ FILENAME "boost-di-copyright"
+ SHA512 d6078467835dba8932314c1c1e945569a64b065474d7aced27c9a7acc391d52e9f234138ed9f1aa9cd576f25f12f557e0b733c14891d42c16ecdc4a7bd4d60b8
+)
+file(INSTALL ${LICENSE} DESTINATION ${CURRENT_PACKAGES_DIR}/share/boost-di/copyright) \ No newline at end of file