[opensubdiv] Add features#20895
Conversation
There was a problem hiding this comment.
This is a new experimental fast check for PR issues. Please let us know if this bot is helpful!
After committing all other changes, the version database must be updated
git add -u && git commit
git checkout 4474aba1e77be2d643eb684298b7d5479cad9a1f -- versions
./vcpkg x-add-version --allDiff
diff --git a/versions/o-/opensubdiv.json b/versions/o-/opensubdiv.json
index b8e49b0..fd69682 100644
--- a/versions/o-/opensubdiv.json
+++ b/versions/o-/opensubdiv.json
@@ -1,7 +1,7 @@
{
"versions": [
{
- "git-tree": "028271fea29de8189bc5fb7a048467dcfaea4d32",
+ "git-tree": "827dc996587bf5d4343bce5b5f11fafb49444a5b",
"version-semver": "3.4.3",
"port-version": 3
},|
|
||
| +if (OPENCL_FOUND) | ||
| + list(APPEND PLATFORM_LIBRARIES | ||
| + Opengl32 |
There was a problem hiding this comment.
It's strange here, opencl should not use the opengl function when the feature opengl is closed, but it is included in the upstream code.
|
@thomthom Please test these features. Thanks. |
|
Wow - that was quick response! I'm trying this out now, but I'm running into some issues. (Which is probably related to now new I am to vcpkg) It appear that vcpkg builds OSD, but I'm having trouble with I've pushed the test project to GitHub: https://github.com/thomthom/osd-vcpkg-test My vcpkg.json file: https://github.com/thomthom/osd-vcpkg-test/blob/main/vcpkg.json {
"$schema": "https://raw.githubusercontent.com/microsoft/vcpkg/master/scripts/vcpkg.schema.json",
"name": "osd-vcpkg-test",
"version": "0.1.0",
"dependencies": [
{
"name": "opensubdiv",
"default-features": false,
"features": []
}
]
}My CMakeLists.txt: https://github.com/thomthom/osd-vcpkg-test/blob/main/CMakeLists.txt How do I figure out the name to use along with |
|
Oh, this package doesn't have a CMake package defined? I compared to another project where I use vcpkg and I see that all those packages have |
|
I created a minimal find module: https://github.com/thomthom/osd-vcpkg-test/tree/dev/find-module Tested on Windows 10 and macOS, in both cases they built minimal OpenSubdiv with CPU only library. For CMake convenience, could this post be also provide a CMake config file? Should I log a new issue for that? Or is that out of the scope for this repo? |
Add features:
Fixes #20871.
Already tested core / all features on
x86-windows,x64-windows-static,x64-linuxandx64-osx.