From dd38d7cb1b910718cdf72d78c4cc4e7d23585e99 Mon Sep 17 00:00:00 2001 From: Lemures Lemniscati Date: Sun, 13 Dec 2020 06:30:46 +0900 Subject: [PATCH] Set 'deflate' to DEFLATE_NAMES, instead of 'libdeflate' 'lib' will be automatically added as a prefix while doing find_library() --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 6669b706..efe857df 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -464,7 +464,7 @@ option(libdeflate "use libdeflate (optional for faster Deflate support, still re if (libdeflate) set(DEFLATE_FOUND 0) find_path(DEFLATE_INCLUDE_DIR libdeflate.h) - set(DEFLATE_NAMES ${DEFLATE_NAMES} libdeflate) + set(DEFLATE_NAMES ${DEFLATE_NAMES} deflate) find_library(DEFLATE_LIBRARY NAMES ${DEFLATE_NAMES}) if (DEFLATE_INCLUDE_DIR AND DEFLATE_LIBRARY) set(DEFLATE_FOUND 1)