diff options
author | Campbell Barton <ideasman42@gmail.com> | 2010-07-03 19:03:13 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2010-07-03 19:03:13 +0400 |
commit | 37b4e2af7714fc98fb2a7f274bb1197b5226bb4b (patch) | |
tree | b048f88de1e31b85a35a744166883e9eeacd7fb7 | |
parent | 0b939f9ea7f11d62b2dbb8f5bd8f0cdbddbacde1 (diff) |
cmake: disable openexr if its not found (rather then throwing an error)
-rw-r--r-- | CMakeLists.txt | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 59e4b798a6b..82c57c014fa 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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) |