Fix IMPLIB naming for MinGW

This commit is contained in:
Sebastian Emanuel Dawid 2025-11-12 16:35:38 +01:00
parent db5fc21072
commit 4e1fbfbf92

View File

@ -75,9 +75,15 @@ target_include_directories(webgpu INTERFACE
)
if (CMAKE_SYSTEM_NAME STREQUAL "Windows")
set_target_properties(webgpu PROPERTIES
IMPORTED_IMPLIB ${webgpu_bins_SOURCE_DIR}/lib/${WEBGPU_LIBNAME}.lib
)
if (MSVC)
set_target_properties(webgpu PROPERTIES
IMPORTED_IMPLIB ${webgpu_bins_SOURCE_DIR}/lib/${WEBGPU_LIBNAME}.lib
)
else ()
set_target_properties(webgpu PROPERTIES
IMPORTED_IMPLIB ${webgpu_bins_SOURCE_DIR}/lib/lib${WEBGPU_LIBNAME}.a
)
endif ()
elseif (CMAKE_SYSTEM_NAME STREQUAL "Linux")
set_target_properties(webgpu PROPERTIES IMPORTED_NO_SONAME True)
else () # macOS