cmake: disable openexr if its not found (rather then throwing an error)

This commit is contained in:
Campbell Barton 2010-07-03 15:03:13 +00:00
parent 0b939f9ea7
commit 37b4e2af77

@ -228,6 +228,10 @@ IF(UNIX AND NOT APPLE)
/opt/include/OpenEXR
)
SET(OPENEXR_LIB Half IlmImf Iex Imath)
IF(NOT OPENEXR_INC)
SET(WITH_OPENEXR OFF)
ENDIF(NOT OPENEXR_INC)
ENDIF(WITH_OPENEXR)
IF(WITH_TIFF)