mirror of https://github.com/fltk/fltk
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:
parent
111b858e12
commit
9cf1afda62
|
@ -121,9 +121,6 @@ if (WIN32)
|
||||||
endif ()
|
endif ()
|
||||||
set (BORDER_WIDTH 2)
|
set (BORDER_WIDTH 2)
|
||||||
endif (MSVC)
|
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)
|
if (MINGW AND EXISTS /mingw)
|
||||||
list(APPEND CMAKE_PREFIX_PATH /mingw)
|
list(APPEND CMAKE_PREFIX_PATH /mingw)
|
||||||
endif (MINGW AND EXISTS /mingw)
|
endif (MINGW AND EXISTS /mingw)
|
||||||
|
|
Loading…
Reference in New Issue