mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-18 00:40:24 +08:00
26 lines
841 B
CMake
26 lines
841 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 e47c2eab39fc507f5cb1b73f76a2eb9a6d475b56b3628e8372296ed7381844aed56ba7b59fb765651e660688be2762d094ec9368beb70201091f01d27a549a3a
|
|
HEAD_REF master
|
|
)
|
|
|
|
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}")
|