From ad0c049edd0a6fc699b33a11ae1865b7beb056fe Mon Sep 17 00:00:00 2001 From: Tiago Quintino Date: Mon, 14 Feb 2022 23:09:29 +0000 Subject: [PATCH] ECC-1348 make check more severe --- CMakeLists.txt | 3 +++ 1 file changed, 3 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 5adc81a7e..4e22033cb 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -115,6 +115,9 @@ ecbuild_add_option( FEATURE NETCDF NO_TPL ) find_package( AEC ) +if(NOT DEFINED ENABLE_AEC AND NOT AEC_FOUND) + ecbuild_critical("AEC support is highly recommended from ecCodes >= 2.25.0\nTo force build without it use -DENABLE_AEC=OFF") +endif() ecbuild_add_option( FEATURE AEC DESCRIPTION "Support for Adaptive Entropy Coding" DEFAULT ON