CMake: Disable Options Depending on OpenEXR Dependecies #106209

Merged
Jeroen Bakker merged 3 commits from Jeroen-Bakker/blender:cmake-imath-libraries into main 2023-04-03 09:51:02 +02:00

3 Commits

Author SHA1 Message Date
Jeroen Bakker 04956a01bd Cleanup. 2023-03-30 07:24:31 +02:00
Jeroen Bakker db01cb7720 Add support for OpenEXR 2.0 libraries. 2023-03-30 07:21:25 +02:00
Jeroen Bakker 3adbebe0df CMake: Disable Options Depeding on OpenEXR dependecies.
buildbot/vexp-code-patch-coordinator Build done. Details
OpenEXR has some dependecies that other other modules in Blender
requires. When disabling OpenEXR these dependecies could not match
and building blender would fail.

This PR disables the next options when WITH_IMAGE_OPENEXR=Off

- `WITH_OPENVDB`
- `WITH_ALEMBIC`
- `WITH_VULKAN_BACKEND`
- `WITH_CYCLES_OSL`

Additionally windows stores the IMath libraries in `IMATH_LIBRARIES`
Linux and Mac stored the IMath libraries in `IMATH_LIBRARY`. This
change will also adds `IMATH_LIBRARIES` variable to all platforms.
2023-03-28 08:34:50 +02:00