SDL2: link sdl2main on windows
parent
a1ec4a4975
commit
6a712bfeab
|
@ -2150,6 +2150,9 @@ if (NOT SDL2_FOUND)
|
|||
set_target_properties(sdl2 PROPERTIES POSITION_INDEPENDENT_CODE ${SDL_STATIC_PIC})
|
||||
set_target_properties(sdl2 PROPERTIES LINK_FLAGS_RELEASE "${EXTRA_LDFLAGS}")
|
||||
set_target_properties(sdl2 PROPERTIES COMPILE_FLAGS "${SDL_CFLAGS} ${EXTRA_CFLAGS}")
|
||||
if (WINDOWS)
|
||||
target_link_libraries(sdl2 SDL2main)
|
||||
endif()
|
||||
if (MSVC)
|
||||
if (NOT LIBC)
|
||||
set_target_properties(sdl2 PROPERTIES LINK_FLAGS_RELEASE "/NODEFAULTLIB")
|
||||
|
|
Loading…
Reference in New Issue