Context
Hi, on the pragtical code editor project we use meson and its cmake submodule to automatically build windows binaries (that include sdl3) using GitHub CI. The editor uses sdl3 built-in iconv wrapper to perform encoding conversions of text files.
Issue
Just recently a user reported that conversion from GB18030 to UTF-8 was failing, I noticed that we weren't explicitly enabling -DSDL_LIBICONV=ON on our configuration so I enabled it and made sure that mingw-w64-x86_64-libiconv was installed. While re-compiling I noticed that CMake always failed to detect libiconv, SDL_LIBICONV was reported as Wanted: ON but it was always turned off... In order to make it work I had to force -DHAVE_ICONV=1 and -DHAVE_LIBICONV=1 and do the usual manual linking (-liconv).
Reporting in case this is a CMake script issue that needs fixing on the SDL3 project.
References
Some Info
SDL Version: 3.4.2
Platform: Windows
Build System: msys2 mingw64
Context
Hi, on the pragtical code editor project we use meson and its cmake submodule to automatically build windows binaries (that include sdl3) using GitHub CI. The editor uses sdl3 built-in iconv wrapper to perform encoding conversions of text files.
Issue
Just recently a user reported that conversion from GB18030 to UTF-8 was failing, I noticed that we weren't explicitly enabling
-DSDL_LIBICONV=ONon our configuration so I enabled it and made sure thatmingw-w64-x86_64-libiconvwas installed. While re-compiling I noticed that CMake always failed to detect libiconv, SDL_LIBICONV was reported asWanted: ONbut it was always turned off... In order to make it work I had to force -DHAVE_ICONV=1 and -DHAVE_LIBICONV=1 and do the usual manual linking (-liconv).Reporting in case this is a CMake script issue that needs fixing on the SDL3 project.
References
Some Info
SDL Version: 3.4.2
Platform: Windows
Build System: msys2 mingw64