early-access version 2853

This commit is contained in:
pineappleEA
2022-07-23 03:01:36 +02:00
parent 1f2b5081b5
commit 1f111bb69c
8955 changed files with 418777 additions and 999 deletions

24
externals/vcpkg/ports/cub/fix-usage.patch vendored Executable file
View File

@@ -0,0 +1,24 @@
diff --git a/cub/cmake/cub-config.cmake b/cub/cmake/cub-config.cmake
index 3d7f64b..213a95e 100644
--- a/cub/cmake/cub-config.cmake
+++ b/cub/cmake/cub-config.cmake
@@ -8,6 +8,7 @@ if (TARGET CUB::CUB)
return()
endif()
+include("${CMAKE_CURRENT_LIST_DIR}/cub-header-search.cmake")
function(_cub_declare_interface_alias alias_name ugly_name)
# 1) Only IMPORTED and ALIAS targets can be placed in a namespace.
# 2) When an IMPORTED library is linked to another target, its include
diff --git a/cub/cmake/cub-header-search.cmake.in b/cub/cmake/cub-header-search.cmake.in
index 2a46606..d2c38ef 100644
--- a/cub/cmake/cub-header-search.cmake.in
+++ b/cub/cmake/cub-header-search.cmake.in
@@ -3,6 +3,6 @@ unset(_CUB_VERSION_INCLUDE_DIR CACHE) # Clear old result to force search
find_path(_CUB_VERSION_INCLUDE_DIR cub/version.cuh
NO_DEFAULT_PATH # Only search explicit paths below:
PATHS
- "${CMAKE_CURRENT_LIST_DIR}/../../../@CMAKE_INSTALL_INCLUDEDIR@" # Install tree
+ "${CMAKE_CURRENT_LIST_DIR}/../../@CMAKE_INSTALL_INCLUDEDIR@" # Install tree
)
set_property(CACHE _CUB_VERSION_INCLUDE_DIR PROPERTY TYPE INTERNAL)

31
externals/vcpkg/ports/cub/portfile.cmake vendored Executable file
View File

@@ -0,0 +1,31 @@
vcpkg_from_github(
OUT_SOURCE_PATH SOURCE_PATH
REPO NVlabs/cub
REF ed040d585c3237d706973d7ad290bfee40958270 #v1.16.0
SHA512 81e0bacb0aa4ee7a1c86f3c12e3135a133579678d3530e0e0b8310f716d0355e5096925ac6de5865140a7aac08d974ea5169d47e34951b932a23965f74fe4ee6
HEAD_REF master
PATCHES fix-usage.patch
)
vcpkg_cmake_configure(
SOURCE_PATH "${SOURCE_PATH}"
OPTIONS
-DCUB_ENABLE_INSTALL_RULES=ON
-DCUB_ENABLE_HEADER_TESTING=OFF
-DCUB_ENABLE_TESTING=OFF
-DCUB_ENABLE_EXAMPLES=OFF
-DCUB_ENABLE_CPP_DIALECT_IN_NAMES=ON
)
vcpkg_cmake_install()
vcpkg_cmake_config_fixup(CONFIG_PATH lib/cmake/cub)
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/include/cub/cmake"
"${CURRENT_PACKAGES_DIR}/debug"
"${CURRENT_PACKAGES_DIR}/lib"
)
file(INSTALL "${CMAKE_CURRENT_LIST_DIR}/usage" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}")
file(INSTALL "${SOURCE_PATH}/LICENSE.TXT" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)

4
externals/vcpkg/ports/cub/usage vendored Executable file
View File

@@ -0,0 +1,4 @@
The package cub is header only and can be used from CMake via:
find_package(cub CONFIG REQUIRED)
target_include_directories(main PRIVATE CUB::CUB)

18
externals/vcpkg/ports/cub/vcpkg.json vendored Executable file
View File

@@ -0,0 +1,18 @@
{
"name": "cub",
"version": "1.16.0",
"description": "CUB is a flexible library of cooperative threadblock primitives and other utilities for CUDA kernel programming",
"homepage": "https://github.com/NVIDIA/cub",
"license": "BSD-3-Clause",
"dependencies": [
"cuda",
{
"name": "vcpkg-cmake",
"host": true
},
{
"name": "vcpkg-cmake-config",
"host": true
}
]
}