From 4e1fbfbf92fb4f84270eb370d09f371352f295ab Mon Sep 17 00:00:00 2001 From: Sebastian Emanuel Dawid Date: Wed, 12 Nov 2025 16:35:38 +0100 Subject: [PATCH] Fix IMPLIB naming for MinGW --- examples/CMakeLists.txt | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/examples/CMakeLists.txt b/examples/CMakeLists.txt index d859407bf..4e54e84b1 100644 --- a/examples/CMakeLists.txt +++ b/examples/CMakeLists.txt @@ -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