From 6ea3f4baff1797d32d0138ebe4fba3cd3196e57b Mon Sep 17 00:00:00 2001 From: Shahram Najm Date: Wed, 23 Feb 2022 18:37:46 +0000 Subject: [PATCH] CMake: Look for libaec.h rather than szlib.h --- cmake/FindAEC.cmake | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cmake/FindAEC.cmake b/cmake/FindAEC.cmake index 2dde3e1cb..bfbe813e3 100644 --- a/cmake/FindAEC.cmake +++ b/cmake/FindAEC.cmake @@ -23,10 +23,10 @@ # LIBAEC_PATH # libaec_PATH -find_path( AEC_INCLUDE_DIR szlib.h +find_path( AEC_INCLUDE_DIR libaec.h 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_path( AEC_INCLUDE_DIR libaec.h PATH_SUFFIXES include include/aec ) find_library( AEC_LIBRARY NAMES aec 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