From 10d78c0e40c96ec4299a71aca04a24096674308a Mon Sep 17 00:00:00 2001 From: Simon Smart Date: Wed, 16 Feb 2022 14:24:34 +0000 Subject: [PATCH] Increase range of hinted search locations for libaec --- cmake/FindAEC.cmake | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/cmake/FindAEC.cmake b/cmake/FindAEC.cmake index ae1d7ffad..2dde3e1cb 100644 --- a/cmake/FindAEC.cmake +++ b/cmake/FindAEC.cmake @@ -18,14 +18,18 @@ # # AEC_DIR - prefix path of the AEC installation # AEC_PATH - prefix path of the AEC installation +# LIBAEC_DIR +# libaec_DIR +# LIBAEC_PATH +# libaec_PATH find_path( AEC_INCLUDE_DIR szlib.h - PATHS ${AEC_DIR} ${AEC_PATH} ENV AEC_DIR ENV AEC_PATH + PATHS ${AEC_DIR} ${AEC_PATH} ${LIBAEC_DIR} ${libaec_DIR} ${LIBAEC_PATH} ${libaec_PATH} ENV AEC_DIR ENV AEC_PATH ENV LIBAEC_DIR ENV libaec_DIR ENV LIBAEC_PATH ENV libaec_PATH PATH_SUFFIXES include include/aec NO_DEFAULT_PATH ) find_path( AEC_INCLUDE_DIR szlib.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} ENV AEC_DIR ENV AEC_PATH ENV LIBAEC_DIR ENV libaec_DIR ENV LIBAEC_PATH ENV libaec_PATH 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 )