diff options
Diffstat (limited to 'CMakeLists.txt')
| -rw-r--r-- | CMakeLists.txt | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 2125b93a..0d5524db 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -140,11 +140,15 @@ ENDIF() # Check for libtiff ################################################################################ -option(DISABLE_TIFF_IS_STRONGLY_DISCOURAGED "Disable TIFF support (strongly discouraged !)" OFF) -mark_as_advanced(DISABLE_TIFF_IS_STRONGLY_DISCOURAGED) -if(NOT DISABLE_TIFF_IS_STRONGLY_DISCOURAGED) +option(DISABLE_TIFF "Disable TIFF support" OFF) +mark_as_advanced(DISABLE_TIFF) +if(DISABLE_TIFF) + message(WARNING "TIFF support has been disabled and will result in the inability to read some grids") +else() find_package(TIFF REQUIRED) - if(NOT TIFF_FOUND) + if(TIFF_FOUND) + boost_report_value(TIFF_FOUND) + else() message(SEND_ERROR "libtiff dependency not found!") endif() add_definitions(-DTIFF_ENABLED) |
