From e207c8bf8524d30623dafdf6e87febea3dca678e Mon Sep 17 00:00:00 2001 From: Edward Hartnett Date: Fri, 29 Mar 2024 10:03:22 -0600 Subject: [PATCH] added find to cmake --- CMakeLists.txt | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 8417db41..fde6ea2b 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -129,6 +129,12 @@ if(USE_PNG) find_package(PNG REQUIRED) endif() +# Find required packages to use AEC. +message(STATUS "Checking of the user wants to use AEC...") +if(USE_AEC) + find_package(libaec 1.0.6 REQUIRED) +endif() + # write config.h message(STATUS "Writing config.h...") FILE(WRITE "wgrib2/config.h" "/* config.h generated by cmake */\n")