From 8ee6ac5344f639ea380e9a81ef7888a98f97fb7b Mon Sep 17 00:00:00 2001 From: Chris Bradley Date: Thu, 24 Oct 2024 14:03:28 +0100 Subject: [PATCH] Use eccodes' findaec --- cmake/FindAEC.cmake | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/cmake/FindAEC.cmake b/cmake/FindAEC.cmake index ae1d7ffad..00123244b 100644 --- a/cmake/FindAEC.cmake +++ b/cmake/FindAEC.cmake @@ -19,13 +19,13 @@ # AEC_DIR - prefix path of the AEC installation # AEC_PATH - prefix path of the AEC installation -find_path( AEC_INCLUDE_DIR szlib.h - PATHS ${AEC_DIR} ${AEC_PATH} ENV AEC_DIR ENV AEC_PATH +find_path( AEC_INCLUDE_DIR libaec.h + PATHS ${AEC_DIR} ${AEC_PATH} ${LIBAEC_DIR} ${libaec_DIR} ${LIBAEC_PATH} ${libaec_PATH} ${libaec_ROOT} ENV AEC_DIR ENV AEC_PATH ENV LIBAEC_DIR ENV libaec_DIR ENV LIBAEC_PATH ENV libaec_PATH ENV libaec_ROOT PATH_SUFFIXES include include/aec NO_DEFAULT_PATH ) -find_path( AEC_INCLUDE_DIR szlib.h PATH_SUFFIXES include include/aec ) +find_path( AEC_INCLUDE_DIR libaec.h PATH_SUFFIXES include include/aec ) find_library( AEC_LIBRARY NAMES aec - PATHS ${AEC_DIR} ${AEC_PATH} ENV AEC_DIR ENV AEC_PATH + PATHS ${AEC_DIR} ${AEC_PATH} ${LIBAEC_DIR} ${libaec_DIR} ${LIBAEC_PATH} ${libaec_PATH} ${libaec_ROOT} ENV AEC_DIR ENV AEC_PATH ENV LIBAEC_DIR ENV libaec_DIR ENV LIBAEC_PATH ENV libaec_PATH ENV libaec_ROOT PATH_SUFFIXES lib lib64 lib/aec lib64/aec NO_DEFAULT_PATH ) find_library( AEC_LIBRARY NAMES aec PATH_SUFFIXES lib lib64 lib/aec lib64/aec ) @@ -36,4 +36,4 @@ include(FindPackageHandleStandardArgs) find_package_handle_standard_args(AEC DEFAULT_MSG AEC_LIBRARY AEC_INCLUDE_DIR) -mark_as_advanced(AEC_INCLUDE_DIR AEC_LIBRARY ) +mark_as_advanced(AEC_INCLUDE_DIR AEC_LIBRARY ) \ No newline at end of file