vcpkg/ports/libarchive/fix-zstd.patch

29 lines
899 B
Diff

From 9397ed51eddf43481d5710eb80441ce4a64356ea Mon Sep 17 00:00:00 2001
From: Julian Scholle <julian.scholle@iff.fraunhofer.de>
Date: Fri, 11 Oct 2019 16:46:06 +0200
Subject: [PATCH] test
---
CMakeLists.txt | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 13da432..911ae5b 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -588,7 +588,10 @@ IF(ENABLE_ZSTD)
ENDIF (ZSTD_INCLUDE_DIR)
FIND_PATH(ZSTD_INCLUDE_DIR zstd.h)
- FIND_LIBRARY(ZSTD_LIBRARY NAMES zstd libzstd)
+ FIND_LIBRARY(ZSTD_LIBRARY_DEBUG NAMES zstdd libzstdd)
+ FIND_LIBRARY(ZSTD_LIBRARY_RELEASE NAMES zstd libzstd)
+ INCLUDE(SelectLibraryConfigurations)
+ SELECT_LIBRARY_CONFIGURATIONS(ZSTD)
INCLUDE(FindPackageHandleStandardArgs)
FIND_PACKAGE_HANDLE_STANDARD_ARGS(ZSTD DEFAULT_MSG ZSTD_LIBRARY ZSTD_INCLUDE_DIR)
ELSE(ENABLE_ZSTD)
--
2.16.1.windows.1