mirror of
https://github.com/glfw/glfw.git
synced 2024-11-26 03:52:01 +00:00
Build file fixes and formatting.
This commit is contained in:
parent
ba9f028eba
commit
104dfaa3ac
@ -26,14 +26,14 @@ set(WINDOWS_BINARIES boing gears heightmap splitview triangle wave)
|
|||||||
|
|
||||||
if(MSVC)
|
if(MSVC)
|
||||||
# Tell MSVC to use main instead of WinMain for Windows subsystem executables
|
# Tell MSVC to use main instead of WinMain for Windows subsystem executables
|
||||||
set_target_properties(${WINDOWS_BINARIES}
|
set_target_properties(${WINDOWS_BINARIES} PROPERTIES
|
||||||
PROPERTIES LINK_FLAGS "/ENTRY:mainCRTStartup")
|
LINK_FLAGS "/ENTRY:mainCRTStartup")
|
||||||
endif(MSVC)
|
endif(MSVC)
|
||||||
|
|
||||||
if(CYGWIN)
|
if(CYGWIN)
|
||||||
# Set cross-compile and subsystem compile and link flags
|
# Set cross-compile and subsystem compile and link flags
|
||||||
set_target_properties(${WINDOWS_BINARIES}
|
set_target_properties(${WINDOWS_BINARIES} PROPERTIES
|
||||||
PROPERTIES COMPILE_FLAGS "-mno-cygwin"
|
COMPILE_FLAGS "-mno-cygwin"
|
||||||
PROPERTIES LINK_FLAGS "-mno-cygwin -mwindows")
|
LINK_FLAGS "-mno-cygwin -mwindows")
|
||||||
endif(CYGWIN)
|
endif(CYGWIN)
|
||||||
|
|
||||||
|
@ -35,17 +35,17 @@ set(CONSOLE_BINARIES defaults events fsaa fsfocus iconify joysticks listmodes
|
|||||||
|
|
||||||
if(MSVC)
|
if(MSVC)
|
||||||
# Tell MSVC to use main instead of WinMain for Windows subsystem executables
|
# Tell MSVC to use main instead of WinMain for Windows subsystem executables
|
||||||
set_target_properties(${WINDOWS_BINARIES} ${CONSOLE_BINARIES}
|
set_target_properties(${WINDOWS_BINARIES} ${CONSOLE_BINARIES} PROPERTIES
|
||||||
PROPERTIES LINK_FLAGS "/ENTRY:mainCRTStartup")
|
LINK_FLAGS "/ENTRY:mainCRTStartup")
|
||||||
endif(MSVC)
|
endif(MSVC)
|
||||||
|
|
||||||
if(CYGWIN)
|
if(CYGWIN)
|
||||||
# Set cross-compile and subsystem compile and link flags
|
# Set cross-compile and subsystem compile and link flags
|
||||||
set_target_properties(${WINDOWS_BINARIES} ${CONSOLE_BINARIES}
|
set_target_properties(${WINDOWS_BINARIES} ${CONSOLE_BINARIES} PROPERTIES
|
||||||
PROPERTIES COMPILE_FLAGS "-mno-cygwin")
|
COMPILE_FLAGS "-mno-cygwin")
|
||||||
set_target_properties(${WINDOWS_BINARIES}
|
set_target_properties(${WINDOWS_BINARIES} PROPERTIES
|
||||||
PROPERTIES LINK_FLAGS "-mno-cygwin -mwindows")
|
LINK_FLAGS "-mno-cygwin -mwindows")
|
||||||
set_target_properties(${CONSOLE_BINARIES}
|
set_target_properties(${CONSOLE_BINARIES} PROPERTIES
|
||||||
PROPERTIES LINK_FLAGS "-mno-cygwin -mconsole")
|
LINK_FLAGS "-mno-cygwin -mconsole")
|
||||||
endif(CYGWIN)
|
endif(CYGWIN)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user