mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-05 11:59:08 +08:00
29 lines
921 B
CMake
29 lines
921 B
CMake
# nanobind distributes source code to build on-demand.
|
|
# The source code is installed into the 'share/${PORT}' directory with
|
|
# subdirectories for source `src` and header `include` files
|
|
set(VCPKG_POLICY_EMPTY_PACKAGE enabled)
|
|
set(VCPKG_BUILD_TYPE release)
|
|
|
|
vcpkg_from_github(
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
REPO wjakob/nanobind
|
|
REF "v${VERSION}"
|
|
SHA512 40311f6416b9fdce764bf80baf156b42e1f00e03f3427b9f9db401fa4eeeb9db83b79c04ebefec2f6ed185419d1b22065f8f12eba3ad57056d2e0f825444b785
|
|
HEAD_REF master
|
|
PATCHES
|
|
find_dependency_python.patch
|
|
move_include_dir.patch
|
|
)
|
|
|
|
vcpkg_cmake_configure(
|
|
SOURCE_PATH "${SOURCE_PATH}"
|
|
OPTIONS
|
|
-DNB_USE_SUBMODULE_DEPS:BOOL=OFF
|
|
-DNB_TEST:BOOL=OFF
|
|
)
|
|
|
|
vcpkg_cmake_install()
|
|
|
|
vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE")
|
|
file(INSTALL "${CMAKE_CURRENT_LIST_DIR}/usage" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}")
|