mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-11-28 05:21:29 +08:00
[wasmedge] Fix zstd not found (#35887)
* Fix find zstd method * update version * fix patch * update version * veresion
This commit is contained in:
parent
2d19a1a5b1
commit
4a2c301393
19
ports/wasmedge/fix_find_zstd.patch
Normal file
19
ports/wasmedge/fix_find_zstd.patch
Normal file
@ -0,0 +1,19 @@
|
||||
diff --git a/cmake/Helper.cmake b/cmake/Helper.cmake
|
||||
index f9cdcf2..a270b05 100644
|
||||
--- a/cmake/Helper.cmake
|
||||
+++ b/cmake/Helper.cmake
|
||||
@@ -221,8 +221,12 @@ if((WASMEDGE_LINK_LLVM_STATIC OR WASMEDGE_BUILD_STATIC_LIB) AND WASMEDGE_BUILD_A
|
||||
endif()
|
||||
if (APPLE AND LLVM_VERSION_MAJOR GREATER_EQUAL 15)
|
||||
# For LLVM 15 or greater on MacOS
|
||||
- find_package(zstd REQUIRED)
|
||||
- get_filename_component(ZSTD_PATH "${zstd_LIBRARY}" DIRECTORY)
|
||||
+ find_package(zstd CONFIG REQUIRED)
|
||||
+ if(CMAKE_BUILD_TYPE STREQUAL Debug)
|
||||
+ set(ZSTD_PATH "${VCPKG_INSTALLED_DIR}/${VCPKG_TARGET_TRIPLET}/debug/lib")
|
||||
+ else()
|
||||
+ set(ZSTD_PATH "${VCPKG_INSTALLED_DIR}/${VCPKG_TARGET_TRIPLET}/lib")
|
||||
+ endif()
|
||||
list(APPEND WASMEDGE_LLVM_LINK_STATIC_COMPONENTS
|
||||
${ZSTD_PATH}/libzstd.a
|
||||
)
|
@ -1,6 +1,7 @@
|
||||
{
|
||||
"name": "wasmedge",
|
||||
"version": "0.13.5",
|
||||
"port-version": 1,
|
||||
"description": "WasmEdge is a high-performance WebAssembly runtime for edge computing.",
|
||||
"homepage": "https://WasmEdge.org",
|
||||
"license": "Apache-2.0",
|
||||
|
@ -9098,7 +9098,7 @@
|
||||
},
|
||||
"wasmedge": {
|
||||
"baseline": "0.13.5",
|
||||
"port-version": 0
|
||||
"port-version": 1
|
||||
},
|
||||
"wavelib": {
|
||||
"baseline": "2021-11-26",
|
||||
|
@ -1,5 +1,10 @@
|
||||
{
|
||||
"versions": [
|
||||
{
|
||||
"git-tree": "45086bbec78c8152a37b5c487e103a4fd838b17a",
|
||||
"version": "0.13.5",
|
||||
"port-version": 1
|
||||
},
|
||||
{
|
||||
"git-tree": "fdf400cacc3fafd5260b1bf7bc097a2e44160d00",
|
||||
"version": "0.13.5",
|
||||
|
Loading…
Reference in New Issue
Block a user