fix/arm64

Signed-off-by: Collecting <collecting@noreply.localhost>
This commit is contained in:
Collecting
2025-11-03 19:34:34 +00:00
parent 9571c14274
commit 4e9e0f9e65

View File

@@ -820,7 +820,8 @@ endif()
# to all executables that depend on core. This must be placed AFTER add_subdirectory(src). # to all executables that depend on core. This must be placed AFTER add_subdirectory(src).
if (MSVC AND ARCHITECTURE_arm64) if (MSVC AND ARCHITECTURE_arm64)
message(STATUS "Applying manual linking workaround for Windows ARM64") message(STATUS "Applying manual linking workaround for Windows ARM64")
target_link_libraries(core PRIVATE FFmpeg::avcodec FFmpeg::avfilter FFmpeg::swscale FFmpeg::avutil SDL2::SDL2) # Use the classic variables, as the modern targets are not created by the vcpkg toolchain for ARM64.
target_link_libraries(core PRIVATE ${FFmpeg_LIBRARIES} ${SDL2_LIBRARY} ${SDL2MAIN_LIBRARY})
endif() endif()
# Apply PGO configuration to main targets # Apply PGO configuration to main targets