diff --git a/ports/boost-di/portfile.cmake b/ports/boost-di/portfile.cmake index e09c813c2126c4..83ea6afe99c51e 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