Commit cb44e6c
cmake: fix Windows Houdini build — auto-detect openvdb_sesi and set search paths
On Windows, Houdini ships its OpenVDB library as openvdb_sesi.lib/dll
rather than openvdb.lib/dll (the name used on Linux/macOS). FindOpenVDB
searches only for the component name verbatim, so Windows Houdini builds
have always required the manual cmake flag:
-DOpenVDB_openvdb_LIBRARY=<HFS>/custom/houdini/dsolib/openvdb_sesi.lib
Fix this by adding an OpenVDB section to OpenVDBHoudiniSetup.cmake that:
- Sets OPENVDB_LIBRARYDIR/OPENVDB_INCLUDEDIR to Houdini's toolkit paths
so FindOpenVDB knows where to look without extra hints.
- On Windows, pre-sets OpenVDB_openvdb_LIBRARY by searching for both
openvdb_sesi and openvdb names in Houdini's dsolib directory,
eliminating the need for a manual command-line override.
Tested with Houdini 20.5.613 (OpenVDB 11.0.0, ABI 11) on Windows 11.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Signed-off-by: KAMAL <m.kamalvfx@gmail.com>1 parent f975414 commit cb44e6c
1 file changed
Lines changed: 21 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
317 | 317 | | |
318 | 318 | | |
319 | 319 | | |
| 320 | + | |
| 321 | + | |
| 322 | + | |
| 323 | + | |
| 324 | + | |
| 325 | + | |
| 326 | + | |
| 327 | + | |
| 328 | + | |
| 329 | + | |
| 330 | + | |
| 331 | + | |
| 332 | + | |
| 333 | + | |
| 334 | + | |
| 335 | + | |
| 336 | + | |
| 337 | + | |
| 338 | + | |
| 339 | + | |
| 340 | + | |
320 | 341 | | |
321 | 342 | | |
322 | 343 | | |
| |||
0 commit comments