diff options
| author | Even Rouault <even.rouault@spatialys.com> | 2020-01-07 14:50:44 +0100 |
|---|---|---|
| committer | Even Rouault <even.rouault@spatialys.com> | 2020-01-07 14:50:44 +0100 |
| commit | 32fc01c08f0fdd154c3b515a3c24165afa981ce3 (patch) | |
| tree | 056ad1e69965110b02114225da33bde307c7c0e0 | |
| parent | 13d651a7305853722780b8ac53c84849ae423714 (diff) | |
| download | PROJ-32fc01c08f0fdd154c3b515a3c24165afa981ce3.tar.gz PROJ-32fc01c08f0fdd154c3b515a3c24165afa981ce3.zip | |
CMake: use more neutral DISABLE_TIFF switch (refs https://github.com/OSGeo/PROJ/pull/1790#discussion_r363750361)
| -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) |
