diff options
| author | Albrecht Schlosser <albrechts.fltk@online.de> | 2023-11-20 20:12:02 +0100 |
|---|---|---|
| committer | Albrecht Schlosser <albrechts.fltk@online.de> | 2023-11-29 16:29:54 +0100 |
| commit | 727bd94560ca9056cdbe40fe2e7923ed008b6eac (patch) | |
| tree | f0d202b6c72415751445bfd91f29dd96fe3f59d2 /src/CMakeLists.txt | |
| parent | a0e4a3fd5d028694e9fa74d2de55eb4f3c3f14b0 (diff) | |
Add commandline conversion for Windows (no-op on other platforms)
- add Fl::args_to_utf8() to convert commandline arguments to UTF-8
This new function closes the gap that previously only Visual Studio
applications converted their commandlines to UTF-8.
Tested with MinGW, MSYS2/MinGW-w64, and Visual Studio (2019).
Diffstat (limited to 'src/CMakeLists.txt')
| -rw-r--r-- | src/CMakeLists.txt | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 393e06f6e..a32319889 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -578,9 +578,14 @@ list (APPEND SHARED_FILES ${HEADER_FILES} ${DRIVER_HEADER_FILES}) set (STATIC_FILES ${SHARED_FILES}) -if (MSVC) +# Visual Studio (MSVC) is known to need WinMain() and maybe BORLAND +# needs it as well, hence we include it on all Windows platforms. +# The GNU compilers (MinGW, MSYS2, Cygwin) disable compilation inside +# the source file which is what we finally want and need. + +if (WIN32) list (APPEND STATIC_FILES fl_call_main.c) -endif (MSVC) +endif () ####################################################################### |
