diff options
| author | Albrecht Schlosser <albrechts.fltk@online.de> | 2022-03-26 18:53:05 +0100 |
|---|---|---|
| committer | Albrecht Schlosser <albrechts.fltk@online.de> | 2022-03-26 18:53:05 +0100 |
| commit | 9cf1afda624033b53054a29b931bdc1fd371916e (patch) | |
| tree | cff9fb0b19e743c8f169cfb79cbd0f4ae7601edb /CMake | |
| parent | 111b858e12a6b2d419431e2e16fbcdbae94a211f (diff) | |
CMake: Remove obsolete platform dependent instructions
The intended effect (building a Windows "GUI" application), is
correctly achieved using the "WIN32" option of add_executable()
selectively where appropriate rather than setting this platform
specific option for *all* (Windows) executables when using GNU
compilers (MinGW, MSYS2, Cygwin, ...).
Diffstat (limited to 'CMake')
| -rw-r--r-- | CMake/setup.cmake | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/CMake/setup.cmake b/CMake/setup.cmake index bf0e922e0..e89ecc7cc 100644 --- a/CMake/setup.cmake +++ b/CMake/setup.cmake @@ -121,9 +121,6 @@ if (WIN32) endif () set (BORDER_WIDTH 2) endif (MSVC) - if (CMAKE_C_COMPILER_ID STREQUAL GNU) - set (CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -Wl,-subsystem,windows") - endif (CMAKE_C_COMPILER_ID STREQUAL GNU) if (MINGW AND EXISTS /mingw) list(APPEND CMAKE_PREFIX_PATH /mingw) endif (MINGW AND EXISTS /mingw) |
