[client,sdl] fix c++ static initialization order

This commit is contained in:
Armin Novak 2023-12-19 19:29:25 +01:00 committed by akallabeth
parent 3095814184
commit 3bdaca81d0

View File

@ -72,6 +72,11 @@ else()
)
endif()
# C++ static initialization order is dependent on which file is added
# first. We need the reverse of what we created here (the implementation
# classes should be last, the factory first)
list(REVERSE SRCS)
add_library(sdl_client_res OBJECT
${RES_FILES}
${SRCS}