diff options
Diffstat (limited to 'build_files/cmake/platform/platform_apple.cmake')
-rw-r--r-- | build_files/cmake/platform/platform_apple.cmake | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/build_files/cmake/platform/platform_apple.cmake b/build_files/cmake/platform/platform_apple.cmake index b22adbc68d5..f755c70a859 100644 --- a/build_files/cmake/platform/platform_apple.cmake +++ b/build_files/cmake/platform/platform_apple.cmake @@ -235,8 +235,14 @@ find_package(PNG REQUIRED) set(JPEG_ROOT ${LIBDIR}/jpeg) find_package(JPEG REQUIRED) -set(TIFF_ROOT ${LIBDIR}/tiff) -find_package(TIFF REQUIRED) +if(WITH_IMAGE_TIFF) + set(TIFF_ROOT ${LIBDIR}/tiff) + find_package(TIFF) + if(NOT TIFF_FOUND) + message(WARNING "TIFF not found, disabling WITH_IMAGE_TIFF") + set(WITH_IMAGE_TIFF OFF) + endif() +endif() if(WITH_BOOST) set(Boost_NO_BOOST_CMAKE ON) |