Commit 0738c55
committed
build: fix OCIO Windows staging and OIIO/OCIO Imath resolution on RHEL
Fix two build regressions introduced by the find_package dispatcher work:
1. OCIO Windows staging: RV_MAKE_STANDARD_LIB_NAME generates
"OpenColorIO.dll" but OCIO builds "OpenColorIO_2.3.dll" (version-
suffixed). Fix _libpath to match the actual DLL so TARGET_LIBS
staging resolves the correct file.
2. OIIO/OCIO Imath_DIR: hardcoded lib/cmake/Imath is wrong on
RHEL/Rocky Linux where GNUInstallDirs sets LIBDIR to lib64.
Use RV_DEPS_IMATH_CMAKE_DIR (set in imath.cmake from _lib_dir)
which correctly resolves to lib64/cmake/Imath on RHEL.
The broken Imath_DIR caused find_dependency(Imath) inside
OpenEXRConfig.cmake to fail, surfacing as "OpenEXR not found"
in the OIIO sub-build.
Signed-off-by: Cédrik Fuoco <cedrik.fuoco@autodesk.com>1 parent 5f25d37 commit 0738c55
2 files changed
+13
-5
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
52 | 52 | | |
53 | 53 | | |
54 | 54 | | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
55 | 61 | | |
56 | 62 | | |
57 | 63 | | |
| |||
138 | 144 | | |
139 | 145 | | |
140 | 146 | | |
141 | | - | |
142 | | - | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
143 | 150 | | |
144 | 151 | | |
145 | 152 | | |
| |||
202 | 209 | | |
203 | 210 | | |
204 | 211 | | |
205 | | - | |
| 212 | + | |
206 | 213 | | |
207 | 214 | | |
208 | 215 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
52 | 52 | | |
53 | 53 | | |
54 | 54 | | |
55 | | - | |
| 55 | + | |
| 56 | + | |
56 | 57 | | |
57 | 58 | | |
58 | | - | |
| 59 | + | |
59 | 60 | | |
60 | 61 | | |
61 | 62 | | |
| |||
0 commit comments