ECC-1355: CMake: Improve the error message when libAEC is not found

This commit is contained in:
Shahram Najm 2022-02-23 17:32:46 +00:00
parent 5393ea7a56
commit 1fb1394a55
1 changed files with 4 additions and 1 deletions

View File

@ -116,7 +116,10 @@ ecbuild_add_option( FEATURE NETCDF
find_package( AEC )
if(NOT DEFINED ENABLE_AEC AND NOT AEC_FOUND)
ecbuild_critical("AEC (Adaptive Entropy Coding) support is highly recommended from ecCodes >= 2.25.0\nTo force the build without it, use -DENABLE_AEC=OFF")
ecbuild_critical("AEC library was not found.\n"
"AEC (Adaptive Entropy Coding) provides the WMO GRIB CCSDS compression and decompression of data. "
"This is highly recommended from ecCodes >= 2.25.0"
"\nTo force the build without it, use -DENABLE_AEC=OFF")
endif()
ecbuild_add_option( FEATURE AEC
DESCRIPTION "Support for Adaptive Entropy Coding"