Correct stupid typos
...I didn't get much sleep, last night.
This commit is contained in:
parent
09fa34cbc7
commit
b775003e94
1 changed files with 4 additions and 4 deletions
|
@ -474,18 +474,18 @@ if(BACKEND_PLATFORM MATCHES "SDL2" OR BACKEND_AUDIO MATCHES "SDL2")
|
||||||
# pkg-config
|
# pkg-config
|
||||||
if (PKG_CONFIG_STATIC_LIBS)
|
if (PKG_CONFIG_STATIC_LIBS)
|
||||||
message(STATUS "Using system SDL2 (pkg-config, static)")
|
message(STATUS "Using system SDL2 (pkg-config, static)")
|
||||||
# Do not link libSDL3main.a, otherwise we get weird linker errors about SDL_main not being found.
|
# Do not link libSDL2main.a, otherwise we get weird linker errors about SDL_main not being found.
|
||||||
# We don't need SDL2's WinMain->main shim anyway, so we can just ignore it.
|
# We don't need SDL2's WinMain->main shim anyway, so we can just ignore it.
|
||||||
list(REMOVE_ITEM sdl2_STATIC_CFLAGS "-Dmain=SDL_main")
|
list(REMOVE_ITEM sdl2_STATIC_CFLAGS "-Dmain=SDL_main")
|
||||||
list(REMOVE_ITEM sdl2_STATIC_LDFLAGS "-lSDLmain")
|
list(REMOVE_ITEM sdl2_STATIC_LDFLAGS "-lSDL2main")
|
||||||
target_compile_options(CSE2 PRIVATE ${sdl2_STATIC_CFLAGS})
|
target_compile_options(CSE2 PRIVATE ${sdl2_STATIC_CFLAGS})
|
||||||
target_link_libraries(CSE2 PRIVATE ${sdl2_STATIC_LDFLAGS})
|
target_link_libraries(CSE2 PRIVATE ${sdl2_STATIC_LDFLAGS})
|
||||||
else()
|
else()
|
||||||
message(STATUS "Using system SDL2 (pkg-config, dynamic)")
|
message(STATUS "Using system SDL2 (pkg-config, dynamic)")
|
||||||
# Do not link libSDL3main.a, otherwise we get weird linker errors about SDL_main not being found.
|
# Do not link libSDL2main.a, otherwise we get weird linker errors about SDL_main not being found.
|
||||||
# We don't need SDL2's WinMain->main shim anyway, so we can just ignore it.
|
# We don't need SDL2's WinMain->main shim anyway, so we can just ignore it.
|
||||||
list(REMOVE_ITEM sdl2_CFLAGS "-Dmain=SDL_main")
|
list(REMOVE_ITEM sdl2_CFLAGS "-Dmain=SDL_main")
|
||||||
list(REMOVE_ITEM sdl2_LDFLAGS "-lSDLmain")
|
list(REMOVE_ITEM sdl2_LDFLAGS "-lSDL2main")
|
||||||
target_compile_options(CSE2 PRIVATE ${sdl2_CFLAGS})
|
target_compile_options(CSE2 PRIVATE ${sdl2_CFLAGS})
|
||||||
target_link_libraries(CSE2 PRIVATE ${sdl2_LDFLAGS})
|
target_link_libraries(CSE2 PRIVATE ${sdl2_LDFLAGS})
|
||||||
endif()
|
endif()
|
||||||
|
|
Loading…
Add table
Reference in a new issue