From 8d1b9c21be9aff5db64c19c641bc818ff91b3608 Mon Sep 17 00:00:00 2001 From: Joshua Scott Date: Mon, 21 Jan 2019 13:15:22 +0000 Subject: [PATCH] cmake: Fix ZLIB_STATIC errors on Linux --- cmake/FindZLIB.cmake | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cmake/FindZLIB.cmake b/cmake/FindZLIB.cmake index ea709c6..673281a 100644 --- a/cmake/FindZLIB.cmake +++ b/cmake/FindZLIB.cmake @@ -75,9 +75,9 @@ unset(_ZLIB_x86) list(APPEND _ZLIB_SEARCHES _ZLIB_SEARCH_NORMAL) set(ZLIB_NAMES z zlib zdll zlib1) -set(ZLIB_NAMES_STATIC zlibstatic) +set(ZLIB_NAMES_STATIC libz.a zlibstatic) set(ZLIB_NAMES_DEBUG zlibd zlibd1) -set(ZLIB_NAMES_STATIC_DEBUG zlibstaticd) +set(ZLIB_NAMES_STATIC_DEBUG libz.a zlibstaticd) # Try each search configuration. foreach(search ${_ZLIB_SEARCHES})