From 57570784e632a79ce030327045e855c89147fdb1 Mon Sep 17 00:00:00 2001 From: Dave Murphy Date: Sun, 21 Jan 2024 19:41:06 +0000 Subject: [PATCH] ogc: don't add SDL2main to EXTRA_LIBS (#45) Co-authored-by: GaryOderNichts <12049776+GaryOderNichts@users.noreply.github.com> --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index c6552832ec69a..dee4c93e63637 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -2937,7 +2937,7 @@ elseif(OGC) endif() if(NOT SDL2_DISABLE_SDL2MAIN) - list(APPEND EXTRA_LIBS "SDL2main") + list(INSERT SDL_LIBS 0 "-lSDL2main") list(APPEND EXTRA_LIBS "fat") endif() endif()