aboutsummaryrefslogtreecommitdiff
path: root/vcpkg/ports/leveldb/fix-dependencies.patch
diff options
context:
space:
mode:
authorEthan Morgan <ethan@gweithio.com>2026-02-14 16:44:06 +0000
committerEthan Morgan <ethan@gweithio.com>2026-02-14 16:44:06 +0000
commit54409423f767d8b1cf30cb7d0efca6b4ca138823 (patch)
treed915ac7828703ce4b963efdd9728a1777ba18c1e /vcpkg/ports/leveldb/fix-dependencies.patch
move to own git serverHEADmaster
Diffstat (limited to 'vcpkg/ports/leveldb/fix-dependencies.patch')
-rw-r--r--vcpkg/ports/leveldb/fix-dependencies.patch34
1 files changed, 34 insertions, 0 deletions
diff --git a/vcpkg/ports/leveldb/fix-dependencies.patch b/vcpkg/ports/leveldb/fix-dependencies.patch
new file mode 100644
index 0000000..5efc638
--- /dev/null
+++ b/vcpkg/ports/leveldb/fix-dependencies.patch
@@ -0,0 +1,34 @@
+diff --git a/CMakeLists.txt b/CMakeLists.txt
+index f8285b8..39536fc 100644
+--- a/CMakeLists.txt
++++ b/CMakeLists.txt
+@@ -38,8 +38,14 @@ include(CheckIncludeFile)
+ check_include_file("unistd.h" HAVE_UNISTD_H)
+
+ include(CheckLibraryExists)
+-check_library_exists(crc32c crc32c_value "" HAVE_CRC32C)
+-check_library_exists(snappy snappy_compress "" HAVE_SNAPPY)
++if (WITH_CRC32C)
++ find_package(Crc32c CONFIG REQUIRED)
++ set(HAVE_CRC32C 1)
++endif()
++if (WITH_SNAPPY)
++ find_package(Snappy CONFIG REQUIRED)
++ set(HAVE_SNAPPY 1)
++endif()
+ check_library_exists(tcmalloc malloc "" HAVE_TCMALLOC)
+
+ include(CheckCXXSymbolExists)
+@@ -268,10 +274,10 @@ if(HAVE_CLANG_THREAD_SAFETY)
+ endif(HAVE_CLANG_THREAD_SAFETY)
+
+ if(HAVE_CRC32C)
+- target_link_libraries(leveldb crc32c)
++ target_link_libraries(leveldb Crc32c::crc32c)
+ endif(HAVE_CRC32C)
+ if(HAVE_SNAPPY)
+- target_link_libraries(leveldb snappy)
++ target_link_libraries(leveldb Snappy::snappy)
+ endif(HAVE_SNAPPY)
+ if(HAVE_TCMALLOC)
+ target_link_libraries(leveldb tcmalloc)