Files
UnrealEngine/Engine/Source/ThirdParty/OpenVDB/openvdb-12.0.0/ci/install_nanobind.sh
Brandyn / Techy fcc1b09210 init
2026-04-04 15:40:51 -05:00

29 lines
495 B
Bash
Executable File

#!/usr/bin/env bash
set -ex
PYBIND11_VERSION="$1"
INSTALL_ROOT="$2"
CMAKE_EXTRA=()
if [ ! -z "${INSTALL_ROOT}" ]; then
CMAKE_EXTRA+=("-DCMAKE_INSTALL_PREFIX=${INSTALL_ROOT}")
fi
git clone --recurse-submodules https://github.com/wjakob/nanobind.git
cd nanobind
if [ "$PYBIND11_VERSION" != "latest" ]; then
git checkout tags/v${PYBIND11_VERSION} -b v${PYBIND11_VERSION}
fi
mkdir build
cd build
cmake \
-DNB_TEST=OFF \
"${CMAKE_EXTRA[@]}" \
..
make -j8
sudo make install