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, ...).
This commit is contained in:
Albrecht Schlosser 2022-03-26 18:53:05 +01:00
parent 111b858e12
commit 9cf1afda62
1 changed files with 0 additions and 3 deletions

View File

@ -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)