Skip to content

Commit

Permalink
[client,sdl] fix c++ static initialization order
Browse files Browse the repository at this point in the history
  • Loading branch information
Armin Novak authored and akallabeth committed Dec 20, 2023
1 parent 3095814 commit 3bdaca8
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions client/SDL/dialogs/res/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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}
Expand Down

0 comments on commit 3bdaca8

Please sign in to comment.