[opensubdiv] Fix feature cuda build with opening Visual Studio (#35678)

* [opensubdiv] Fix feature cuda build with opening Visual Studio

* update version
This commit is contained in:
Lily Wang 2023-12-14 22:57:21 -08:00 committed by GitHub
parent 1d206dae08
commit 0e62a1d670
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 22 additions and 2 deletions

View File

@ -0,0 +1,13 @@
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 098df7d..9314d03 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -730,7 +730,7 @@ endmacro()
# use when cross compiling or building multi-architecture binaries.
# We also provide a C++ binary implementation so that Python is not
# required (for backward compatibility).
-if (OPENGL_FOUND OR OPENCL_FOUND OR DXSDK_FOUND OR METAL_FOUND)
+if (OPENGL_FOUND OR OPENCL_FOUND OR DXSDK_FOUND OR METAL_FOUND OR CUDA_FOUND)
if(Python_Interpreter_FOUND)
set(OSD_STRINGIFY_TOOL ${CMAKE_CURRENT_SOURCE_DIR}/tools/stringify/stringify.py)
set(OSD_STRINGIFY ${Python_EXECUTABLE} ${OSD_STRINGIFY_TOOL})

View File

@ -13,6 +13,7 @@ vcpkg_from_github(
fix-version-search.patch fix-version-search.patch
fix-build-type.patch fix-build-type.patch
fix-dependencies.patch fix-dependencies.patch
fix-feature-cuda.patch
) )
if(VCPKG_TARGET_IS_LINUX) if(VCPKG_TARGET_IS_LINUX)
@ -135,4 +136,4 @@ file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include"
"${CURRENT_PACKAGES_DIR}/debug/bin" "${CURRENT_PACKAGES_DIR}/debug/bin"
) )
file(INSTALL "${SOURCE_PATH}/LICENSE.txt" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright) vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE.txt")

View File

@ -1,6 +1,7 @@
{ {
"name": "opensubdiv", "name": "opensubdiv",
"version-semver": "3.5.0", "version-semver": "3.5.0",
"port-version": 1,
"description": "An Open-Source subdivision surface library.", "description": "An Open-Source subdivision surface library.",
"homepage": "https://github.com/PixarAnimationStudios/OpenSubdiv", "homepage": "https://github.com/PixarAnimationStudios/OpenSubdiv",
"license": "Apache-2.0", "license": "Apache-2.0",

View File

@ -6350,7 +6350,7 @@
}, },
"opensubdiv": { "opensubdiv": {
"baseline": "3.5.0", "baseline": "3.5.0",
"port-version": 0 "port-version": 1
}, },
"opentelemetry-cpp": { "opentelemetry-cpp": {
"baseline": "1.12.0", "baseline": "1.12.0",

View File

@ -1,5 +1,10 @@
{ {
"versions": [ "versions": [
{
"git-tree": "8cc627798709caed394f31456098644f359f0936",
"version-semver": "3.5.0",
"port-version": 1
},
{ {
"git-tree": "38f4d0720a8f9f0610f327382977951421d3ce98", "git-tree": "38f4d0720a8f9f0610f327382977951421d3ce98",
"version-semver": "3.5.0", "version-semver": "3.5.0",