vmime icon indicating copy to clipboard operation
vmime copied to clipboard

Disable MLang checks on MinGW/MSYS2

Open saturneric opened this issue 10 months ago • 2 comments

On MinGW and MSYS2, the MLang APIs are already provided by the Windows runtime, so manually checking for Mlang.h and linking mlang via dlopen is unnecessary and currently fails. The existing CMake logic under IF(WIN32) tries to detect and link mlang, but in MinGW/MSYS2 this check does not work and causes configuration errors. We need to detect the MinGW/MSYS2 environment and skip those MLang checks.

Refer: https://packages.msys2.org/packages/mingw-w64-x86_64-headers-git

saturneric avatar Jun 03 '25 19:06 saturneric

It seems that CMake provides built-in variables for MinGW environments and MSYS, could you please test?

IF(MINGW OR MSYS)
...
ENDIF()

vincent-richard avatar Jun 05 '25 06:06 vincent-richard

Okay. I'll do that later.

saturneric avatar Jun 05 '25 08:06 saturneric