Blob Blame History Raw
--- orc-rel-release-1.6.6/cmake_modules/FindZLIB.cmake.orig	2021-09-15 14:20:04.485626684 -0400
+++ orc-rel-release-1.6.6/cmake_modules/FindZLIB.cmake	2021-09-15 14:20:33.448146843 -0400
@@ -14,7 +14,7 @@
 
 # ZLIB_INCLUDE_DIR: directory containing headers
 # ZLIB_LIBS: directory containing ZLIB libraries
-# ZLIB_STATIC_LIB: path to zlib.a
+# ZLIB_SHARED_LIB: path to zlib.a
 # ZLIB_FOUND: whether ZLIB has been found
 
 if( NOT "${ZLIB_HOME}" STREQUAL "")
@@ -28,11 +28,11 @@
   NO_DEFAULT_PATH
   PATH_SUFFIXES "include")
 
-if (NOT ZLIB_STATIC_LIB_NAME)
-  set (ZLIB_STATIC_LIB_NAME z)
+if (NOT ZLIB_SHARED_LIB_NAME)
+  set (ZLIB_SHARED_LIB_NAME z)
 endif()
 
-find_library (ZLIB_LIBRARIES NAMES ${ZLIB_STATIC_LIB_NAME} HINTS
+find_library (ZLIB_LIBRARIES NAMES ${ZLIB_SHARED_LIB_NAME} HINTS
   ${_zlib_path}
   PATH_SUFFIXES "lib")
 
@@ -41,14 +41,14 @@
   get_filename_component (ZLIB_LIBS ${ZLIB_LIBRARIES} PATH )
   set (ZLIB_HEADER_NAME zlib.h)
   set (ZLIB_HEADER ${ZLIB_INCLUDE_DIR}/${ZLIB_HEADER_NAME})
-  set (ZLIB_STATIC_LIB ${ZLIB_LIBS}/${CMAKE_STATIC_LIBRARY_PREFIX}${ZLIB_STATIC_LIB_NAME}${CMAKE_STATIC_LIBRARY_SUFFIX})
+  set (ZLIB_SHARED_LIB ${ZLIB_LIBS}/${CMAKE_SHARED_LIBRARY_PREFIX}${ZLIB_SHARED_LIB_NAME}${CMAKE_SHARED_LIBRARY_SUFFIX})
 else ()
   set (ZLIB_FOUND FALSE)
 endif ()
 
 if (ZLIB_FOUND)
   message (STATUS "Found the ZLIB header: ${ZLIB_HEADER}")
-  message (STATUS "Found the ZLIB library: ${ZLIB_STATIC_LIB}")
+  message (STATUS "Found the ZLIB library: ${ZLIB_SHARED_LIB}")
 else()
   if (_zlib_path)
     set (ZLIB_ERR_MSG "Could not find ZLIB. Looked in ${_zlib_path}.")
@@ -65,7 +65,7 @@
 
 mark_as_advanced (
   ZLIB_INCLUDE_DIR
-  ZLIB_STATIC_LIB
+  ZLIB_SHARED_LIB
   ZLIB_LIBS
   ZLIB_LIBRARIES
 )