diff --git a/client/SDL/dialogs/res/CMakeLists.txt b/client/SDL/dialogs/res/CMakeLists.txt index 27ff629e5..98e3c3fb3 100644 --- a/client/SDL/dialogs/res/CMakeLists.txt +++ b/client/SDL/dialogs/res/CMakeLists.txt @@ -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}