CMake: make OpenVDB depend on OpenEXR
authorCampbell Barton <ideasman42@gmail.com>
Tue, 3 Mar 2020 23:39:53 +0000 (10:39 +1100)
committerCampbell Barton <ideasman42@gmail.com>
Tue, 3 Mar 2020 23:39:53 +0000 (10:39 +1100)
OpenVDB uses 'half' type & fails to link without it.

CMakeLists.txt

index 0116446454e940bed79757cd29798bd3e0c01221..2b4721ff98fdab5a6fab2445f44d6a75800d4e62 100644 (file)
@@ -633,6 +633,9 @@ set_and_warn_dependency(WITH_TBB WITH_OPENIMAGEDENOISE  OFF)
 set_and_warn_dependency(WITH_TBB WITH_OPENVDB           OFF)
 set_and_warn_dependency(WITH_TBB WITH_MOD_FLUID         OFF)
 
+# OpenVDB uses 'half' type from OpenEXR & fails to link without OpenEXR enabled.
+set_and_warn_dependency(WITH_IMAGE_OPENEXR WITH_OPENVDB OFF)
+
 # auto enable openimageio for cycles
 if(WITH_CYCLES)
   set(WITH_OPENIMAGEIO ON)