mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-26 17:41:09 +08:00
[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:
parent
1d206dae08
commit
0e62a1d670
13
ports/opensubdiv/fix-feature-cuda.patch
Normal file
13
ports/opensubdiv/fix-feature-cuda.patch
Normal 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})
|
@ -13,6 +13,7 @@ vcpkg_from_github(
|
||||
fix-version-search.patch
|
||||
fix-build-type.patch
|
||||
fix-dependencies.patch
|
||||
fix-feature-cuda.patch
|
||||
)
|
||||
|
||||
if(VCPKG_TARGET_IS_LINUX)
|
||||
@ -135,4 +136,4 @@ file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include"
|
||||
"${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")
|
||||
|
@ -1,6 +1,7 @@
|
||||
{
|
||||
"name": "opensubdiv",
|
||||
"version-semver": "3.5.0",
|
||||
"port-version": 1,
|
||||
"description": "An Open-Source subdivision surface library.",
|
||||
"homepage": "https://github.com/PixarAnimationStudios/OpenSubdiv",
|
||||
"license": "Apache-2.0",
|
||||
|
@ -6350,7 +6350,7 @@
|
||||
},
|
||||
"opensubdiv": {
|
||||
"baseline": "3.5.0",
|
||||
"port-version": 0
|
||||
"port-version": 1
|
||||
},
|
||||
"opentelemetry-cpp": {
|
||||
"baseline": "1.12.0",
|
||||
|
@ -1,5 +1,10 @@
|
||||
{
|
||||
"versions": [
|
||||
{
|
||||
"git-tree": "8cc627798709caed394f31456098644f359f0936",
|
||||
"version-semver": "3.5.0",
|
||||
"port-version": 1
|
||||
},
|
||||
{
|
||||
"git-tree": "38f4d0720a8f9f0610f327382977951421d3ce98",
|
||||
"version-semver": "3.5.0",
|
||||
|
Loading…
x
Reference in New Issue
Block a user