Skip to content

A lightweight WebAssembly runtime that is fast, secure, and standards-compliant

c-api: Fix CMakeLists to work properly on ios & other apple targets (#11782)

Seph Gentle53afb1955933
diff --git a/crates/c-api/CMakeLists.txt b/crates/c-api/CMakeLists.txt
index 4b67dbef41..467817c2fb 100644
--- a/crates/c-api/CMakeLists.txt
+++ b/crates/c-api/CMakeLists.txt
@@ -34,7 +34,7 @@ endif()
set(WASMTIME_TARGET_DIR ${CMAKE_CURRENT_SOURCE_DIR}/../../target/${WASMTIME_TARGET}/${WASMTIME_BUILD_TYPE})
-if(WASMTIME_TARGET MATCHES "darwin")
+if(WASMTIME_TARGET MATCHES "apple")
set(WASMTIME_SHARED_FILES libwasmtime.dylib)
set(WASMTIME_STATIC_FILES libwasmtime.a)
elseif(WASMTIME_TARGET MATCHES "windows-gnu")