Got it, but I think the CMake variable WITH_OPENIMAGEIO is not needed.
It should be replaced with WITH_IMAGE_OPENIMAGEIO, and Cycles should
simply depend on WITH_IMAGE_OPENIMAGEIO like this:


# auto enable openimageio for cycles
if(WITH_CYCLES)
        set(WITH_IMAGE_OPENIMAGEIO ON)
endif()

# auto enable openimageio linking dependencies
if(WITH_IMAGE_OPENIMAGEIO)
        set(WITH_IMAGE_OPENEXR ON)
        set(WITH_IMAGE_TIFF ON)
endif()


IRIE Shinsuke

13/10/12, Dalai Felinto wrote:
> Hi,
>
>> it causes unwanted behavior that the PSD support is enabled even if
> WITH_IMAGE_OPENIMAGEIO=OFF and WITH_CYCLES=ON
>
> This is actually the wanted behaviour. Bear with me ...
>
> If the average user just builds Blender, she gets Cycles, PSD, all the
> goodies.
>
> If the advanced user/developer doesn't want to build Cycles but wants PSD
> support, she does WITH_CYCLES=OFF and WITH_IMAGE_OPENIMAGEIO=ON
>
> If the user doesn't want anything to use OIIO, she simply does
> WITH_CYCLES=OFF.
>
> I believe (may be wrong) that one of main ideas of having those defines in
> the code is to speed up building (less code to build, less libraries to
> link to ...). Thus I think we should tie the defines to the library, not
> the feature.
>
> Dalai // mobile
> _______________________________________________
> Bf-committers mailing list
> [email protected]
> http://lists.blender.org/mailman/listinfo/bf-committers
>
_______________________________________________
Bf-committers mailing list
[email protected]
http://lists.blender.org/mailman/listinfo/bf-committers

Reply via email to