mirror of
https://github.com/oven-sh/bun
synced 2026-02-11 03:18:53 +00:00
Co-authored-by: Dylan Conway <dylan.conway567@gmail.com> Co-authored-by: Dylan Conway <35280289+dylan-conway@users.noreply.github.com> Co-authored-by: Jarred-Sumner <709451+Jarred-Sumner@users.noreply.github.com>
33 lines
630 B
CMake
33 lines
630 B
CMake
register_repository(
|
|
NAME
|
|
highway
|
|
REPOSITORY
|
|
google/highway
|
|
COMMIT
|
|
12b325bc1793dee68ab2157995a690db859fe9e0
|
|
)
|
|
|
|
set(HIGHWAY_CMAKE_ARGS
|
|
# Build a static library
|
|
-DBUILD_SHARED_LIBS=OFF
|
|
# Enable position-independent code for linking into the main executable
|
|
-DCMAKE_POSITION_INDEPENDENT_CODE=ON
|
|
# Disable unnecessary components
|
|
-DHWY_ENABLE_TESTS=OFF
|
|
-DHWY_ENABLE_EXAMPLES=OFF
|
|
-DHWY_ENABLE_CONTRIB=OFF
|
|
# Disable building of the install target
|
|
-DHWY_ENABLE_INSTALL=OFF
|
|
)
|
|
|
|
register_cmake_command(
|
|
TARGET
|
|
highway
|
|
LIBRARIES
|
|
hwy
|
|
ARGS
|
|
${HIGHWAY_CMAKE_ARGS}
|
|
INCLUDES
|
|
.
|
|
hwy
|
|
) |