Blame SOURCES/0004-cmake_modules-FindSnappy.cmake.patch

20b247
--- orc-rel-release-1.6.6/cmake_modules/FindSnappy.cmake.orig	2020-12-03 15:46:53.000000000 -0500
20b247
+++ orc-rel-release-1.6.6/cmake_modules/FindSnappy.cmake	2021-09-15 13:50:06.714446184 -0400
20b247
@@ -14,7 +14,7 @@
20b247
 
20b247
 # SNAPPY_INCLUDE_DIR: directory containing headers
20b247
 # SNAPPY_LIBS: directory containing snappy libraries
20b247
-# SNAPPY_STATIC_LIB: path to libsnappy.a
20b247
+# SNAPPY_SHARED_LIB: path to libsnappy.a
20b247
 # SNAPPY_FOUND: whether snappy has been found
20b247
 
20b247
 if( NOT "${SNAPPY_HOME}" STREQUAL "")
20b247
@@ -38,14 +38,14 @@
20b247
   set (SNAPPY_HEADER_NAME snappy.h)
20b247
   set (SNAPPY_HEADER ${SNAPPY_INCLUDE_DIR}/${SNAPPY_HEADER_NAME})
20b247
   set (SNAPPY_LIB_NAME snappy)
20b247
-  set (SNAPPY_STATIC_LIB ${SNAPPY_LIBS}/${CMAKE_STATIC_LIBRARY_PREFIX}${SNAPPY_LIB_NAME}${CMAKE_STATIC_LIBRARY_SUFFIX})
20b247
+  set (SNAPPY_SHARED_LIB ${SNAPPY_LIBS}/${CMAKE_SHARED_LIBRARY_PREFIX}${SNAPPY_LIB_NAME}${CMAKE_SHARED_LIBRARY_SUFFIX})
20b247
 else ()
20b247
   set (SNAPPY_FOUND FALSE)
20b247
 endif ()
20b247
 
20b247
 if (SNAPPY_FOUND)
20b247
   message (STATUS "Found the Snappy header: ${SNAPPY_HEADER}")
20b247
-  message (STATUS "Found the Snappy library: ${SNAPPY_STATIC_LIB}")
20b247
+  message (STATUS "Found the Snappy library: ${SNAPPY_SHARED_LIB}")
20b247
 else()
20b247
   if (_snappy_path)
20b247
     set (SNAPPY_ERR_MSG "Could not find Snappy. Looked in ${_snappy_path}.")
20b247
@@ -62,7 +62,7 @@
20b247
 
20b247
 mark_as_advanced (
20b247
   SNAPPY_INCLUDE_DIR
20b247
-  SNAPPY_STATIC_LIB
20b247
+  SNAPPY_SHARED_LIB
20b247
   SNAPPY_LIBS
20b247
   SNAPPY_LIBRARIES
20b247
 )