Răsfoiți Sursa

Fix iwasm build error when WAMR_BUILD_WASI_NN enabled

A recent change on ./product-mini/platforms/linux/CMakeLists.txt renamed
libiwasm to vmlib, but wasi-nn.cmake still wants to link libiwasm.so.
Replace libiwasm with vmlib in wasi-nn.cmake to resolve iwasm build error
when WAMR_BUILD_WASI_NN enabled.
Zhen Kong 10 luni în urmă
părinte
comite
dde6477fa5
1 a modificat fișierele cu 3 adăugiri și 3 ștergeri
  1. 3 3
      core/iwasm/libraries/wasi-nn/cmake/wasi_nn.cmake

+ 3 - 3
core/iwasm/libraries/wasi-nn/cmake/wasi_nn.cmake

@@ -39,7 +39,7 @@ if(WAMR_BUILD_WASI_NN_TFLITE EQUAL 1)
   target_link_libraries(
     wasi_nn_tflite
     PUBLIC
-      libiwasm
+      vmlib
       tensorflow-lite
   )
 
@@ -71,7 +71,7 @@ if(WAMR_BUILD_WASI_NN_OPENVINO EQUAL 1)
   target_link_libraries(
     wasi_nn_openvino
     PUBLIC
-      libiwasm
+      vmlib
       openvino::runtime
       openvino::runtime::c
   )
@@ -100,7 +100,7 @@ if(WAMR_BUILD_WASI_NN_LLAMACPP EQUAL 1)
   target_link_libraries(
     wasi_nn_llamacpp
     PUBLIC
-      libiwasm
+      vmlib
       cjson
       common
       ggml