cmake: fix sdl3.pc for Nintendo 3DS + add to test matrix

This commit is contained in:
Anonymous Maarten
2023-01-15 17:39:07 +01:00
parent fc72ee5775
commit 0a1479d58c
6 changed files with 49 additions and 17 deletions

View File

@@ -2721,6 +2721,13 @@ elseif(N3DS)
else()
message_error("SDL_FILE must be enabled to build on N3DS")
endif()
foreach(lib ${CMAKE_C_STANDARD_LIBRARIES})
if(lib MATCHES "^-l")
string(SUBSTRING "${lib}" 2 -1 lib)
endif()
list(APPEND SDL_EXTRA_LIBS ${lib})
endforeach()
endif()
if(HAVE_VULKAN AND NOT SDL_LOADSO)