Browse Source

cmake: remove unused file copy (#7744)

The file copy added for shared libraries is not needed and unused, it's not done for static builds and everywhere refers to WASMTIME_BUILD_PRODUCT or the original file in cargo's output.
pull/7712/head
Tyler Rockwood 10 months ago
committed by GitHub
parent
commit
2b2e63831a
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 17
      crates/c-api/CMakeLists.txt

17
crates/c-api/CMakeLists.txt

@ -11,23 +11,6 @@ else()
set(WASMTIME_BUILD_TYPE "debug")
endif()
if(BUILD_SHARED_LIBS)
# Copy shared library into build directory
if(WIN32)
set(WASMTIME_INSTALL_COMMAND ${CMAKE_COMMAND} -E copy_if_different
${CMAKE_CURRENT_SOURCE_DIR}/../../target/${WASMTIME_BUILD_TYPE}/wasmtime.dll
${CMAKE_BINARY_DIR})
elseif(APPLE)
set(WASMTIME_INSTALL_COMMAND ${CMAKE_COMMAND} -E copy_if_different
${CMAKE_CURRENT_SOURCE_DIR}/../../target/${WASMTIME_BUILD_TYPE}/libwasmtime.dylib
${CMAKE_BINARY_DIR})
else()
set(WASMTIME_INSTALL_COMMAND ${CMAKE_COMMAND} -E copy_if_different
${CMAKE_CURRENT_SOURCE_DIR}/../../target/${WASMTIME_BUILD_TYPE}/libwasmtime.so
${CMAKE_BINARY_DIR})
endif()
endif()
if(ANDROID)
# TODO wasmtime only supports arm64-v8a right now
if(ANDROID_ABI STREQUAL "armeabi-v7a")

Loading…
Cancel
Save