Fix linker errors when building without Cycles

Fix linker errors by explicitly linking PugiXML when OpenImageIO is
used.

PugiXML has been separated from OpenImageIO (D8628). This means that any
time OpenImageIO libraries are linked, the PugiXML libraries have to be
linked as well. This was set up correctly for Cycles, but not for imbuf.
Because of this, building without Cycles but with OIIO would produce
linker errors.
This commit is contained in:
Sybren A. Stüvel 2020-12-03 11:07:06 +01:00
parent acaee97c2f
commit 899dcc5f60

@ -49,6 +49,7 @@ if(WITH_OPENIMAGEIO)
)
list(APPEND LIB
${OPENIMAGEIO_LIBRARIES}
${PUGIXML_LIBRARIES}
)
if(WITH_IMAGE_OPENEXR)
list(APPEND INC_SYS