Commit 97563cb
committed
fix(x11/opensubdiv): correct absolute paths in provided CMake files
- Context: similar to #24956. This might be helpful for a future nested dependency of Blender.
- Fixes this error when some projects import `opensubdiv` through CMake, by preventing the generation of a malformed path `/data/data/com.termux/files/usr//data/data/com.termux/files/usr/lib` in `OpenSubdivConfig.cmake`:
```
CMake Error at /data/data/com.termux/files/usr/lib/cmake/OpenSubdiv/OpenSubdivConfig.cmake:11 (message):
File or directory
/data/data/com.termux/files/usr//data/data/com.termux/files/usr/lib
referenced by variable OpenSubdiv_LIB_DIR does not exist !
Call Stack (most recent call first):
/data/data/com.termux/files/usr/lib/cmake/OpenSubdiv/OpenSubdivConfig.cmake:28 (set_and_check)
cmake/defaults/Packages.cmake:225 (find_package)
CMakeLists.txt:23 (include)
-- Configuring incomplete, errors occurred!
```
- Copied and pasted from PixarAnimationStudios/OpenSubdiv#13151 parent a64931c commit 97563cb
File tree
2 files changed
+30
-1
lines changed- x11-packages/opensubdiv
2 files changed
+30
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
8 | | - | |
| 8 | + | |
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
| |||
Lines changed: 29 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
0 commit comments