Skip to content

IMPLIB file issue building with MinGW-W64 toolchain #125

@yzazik

Description

@yzazik

Hello, I'm experiencing the following issue with versions 3.0.0 and later.

OS: Windows 11 23H2
Compiler: MinGW-W64 GNU C++ 15.1.0 from x86_64-15.1.0-release-posix-seh-msvcrt-rt_v12-rev0.7z
SystemC: 3.0.0+, github cloned
CMake: 3.31.6, github release
Ninja: 1.12.1, github release
CMake config: cmake -B build -S . -G Ninja -DCMAKE_C_COMPILER=gcc.exe -DCMAKE_CXX_COMPILER=g++.exe -DBUILD_SHARED_LIBS=ON

Symptom: after successfull build and install, in the installed file SystemCLanguageTargets-release.cmake there is IMPLIB:

set_target_properties(SystemC::systemc-3.0.2 PROPERTIES
  IMPORTED_IMPLIB_RELEASE "${_IMPORT_PREFIX}/lib/libsystemc-3.0.2.dll.a"
  IMPORTED_LOCATION_RELEASE "${_IMPORT_PREFIX}/bin/libsystemc-3.0.2.dll"
  )

but there is no actual libsystemc-3.0.2.dll.a file built or installed.
I do get libsystemc.a file though, could be a simple fix if it just a file name mismatch.
Thank you.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions