Skip to content

Commit

Permalink
copy licenses
Browse files Browse the repository at this point in the history
  • Loading branch information
mcb5637 committed Sep 23, 2024
1 parent 84a3f21 commit dffcac2
Showing 1 changed file with 15 additions and 2 deletions.
17 changes: 15 additions & 2 deletions src/dice/hash/blake/internal/blake3/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -41,15 +41,22 @@ set(blake3_files
blake3_sse41_x86-64_windows_msvc.asm
libblake3.pc.in
)
set(blake3_license_files
LICENSE_A2
LICENSE_A2LLVM
LICENSE_CC0
)

foreach(file ${blake3_files})
file(DOWNLOAD "https://raw.githubusercontent.com/BLAKE3-team/BLAKE3/${blake3_rev}/c/${file}"
"${CMAKE_CURRENT_BINARY_DIR}/src/blake3/${file}"
TLS_VERIFY ON)
endforeach()
file(DOWNLOAD "https://raw.githubusercontent.com/BLAKE3-team/BLAKE3/${blake3_rev}/LICENSE_A2"
"${CMAKE_CURRENT_BINARY_DIR}/src/blake3/LICENSE"
foreach(file ${blake3_license_files})
file(DOWNLOAD "https://raw.githubusercontent.com/BLAKE3-team/BLAKE3/${blake3_rev}/${file}"
"${CMAKE_CURRENT_BINARY_DIR}/src/blake3/${file}"
TLS_VERIFY ON)
endforeach()

# architecture lists for which to enable assembly / SIMD sources
set(BLAKE3_AMD64_NAMES amd64 AMD64 x86_64)
Expand Down Expand Up @@ -207,6 +214,12 @@ endif()

# cmake install support
install(FILES ${CMAKE_CURRENT_BINARY_DIR}/src/blake3/blake3.h DESTINATION "${CMAKE_INSTALL_INCLUDEDIR}")
install(FILES
${CMAKE_CURRENT_BINARY_DIR}/LICENSE_A2
${CMAKE_CURRENT_BINARY_DIR}/LICENSE_A2LLVM
${CMAKE_CURRENT_BINARY_DIR}/LICENSE_CC0
DESTINATION "${CMAKE_INSTALL_DATADIR}/licenses"
)
install(TARGETS blake3 EXPORT blake3-targets)
install(EXPORT blake3-targets
NAMESPACE BLAKE3::
Expand Down

0 comments on commit dffcac2

Please sign in to comment.