Skip to content

Commit

Permalink
CMake: do not try Lerc on big-endian builds
Browse files Browse the repository at this point in the history
  • Loading branch information
rouault committed Jul 7, 2022
1 parent b56f4ea commit 9aaae9d
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions cmake/helpers/CheckDependentLibraries.cmake
Expand Up @@ -407,8 +407,10 @@ gdal_internal_library(QHULL)
set(GDAL_USE_LIBCSF_INTERNAL ON)

# Compression used by GTiff and MRF
gdal_check_package(LERC "Enable LERC (external)" CAN_DISABLE RECOMMENDED)
gdal_internal_library(LERC)
if( NOT WORDS_BIGENDIAN )
gdal_check_package(LERC "Enable LERC (external)" CAN_DISABLE RECOMMENDED)
gdal_internal_library(LERC)
endif()

gdal_check_package(BRUNSLI "Enable BRUNSLI for JPEG packing in MRF" CAN_DISABLE RECOMMENDED)

Expand Down

0 comments on commit 9aaae9d

Please sign in to comment.