diff options
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 () ####################################################################### |
