Blame SOURCES/0007-cmake_modules-FindZLIB.cmake.patch

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