[vcpkg-ci-sdl3-image] Use C++ linker for android (#52093)

This commit is contained in:
Kai Pastor 2026-06-01 10:16:48 +02:00 committed by GitHub
parent 0766f1d00b
commit 17a400cbce
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 5 additions and 1 deletions

View File

@ -1,5 +1,5 @@
cmake_minimum_required(VERSION 3.30)
project(sdl3-image-test C CXX) # C++ for tiff[lerc]
project(sdl3-image-test C CXX) # C++ for tiff[lerc] and sdl3(android)
block(SCOPE_FOR VARIABLES)
find_package(SDL3_image CONFIG REQUIRED)
@ -22,4 +22,8 @@ block(SCOPE_FOR VARIABLES)
target_compile_options(main-pkconfig PRIVATE ${PC_SDL3_IMAGE_CFLAGS})
target_link_libraries(main-pkconfig PRIVATE ${PC_SDL3_IMAGE_LDFLAGS})
endif()
if(ANDROID)
# sdl3 needs C++ linker for HID, but it is not carried in sdl3.pc
set_target_properties(main-pkconfig PROPERTIES LINKER_LANGUAGE CXX)
endif()
endblock()