cmake: adjust order of dependencies to link with

The order is important when linking statically.
This commit is contained in:
Sebastian Krzyszkowiak 2019-05-31 01:26:39 +02:00
parent 6758075511
commit afc60d96d0
No known key found for this signature in database
GPG key ID: E8F235CF3BDBC3FF

View file

@ -42,7 +42,7 @@ if (NOT LIBSUPERDERPY_STATIC_GAMESTATES)
target_link_libraries("libsuperderpy" dl)
endif()
target_link_libraries("libsuperderpy" ${ALLEGRO5_LIBRARIES} ${ALLEGRO5_FONT_LIBRARIES} ${ALLEGRO5_TTF_LIBRARIES} ${ALLEGRO5_PRIMITIVES_LIBRARIES} ${ALLEGRO5_AUDIO_LIBRARIES} ${ALLEGRO5_ACODEC_LIBRARIES} ${ALLEGRO5_VIDEO_LIBRARIES} ${ALLEGRO5_COLOR_LIBRARIES} ${ALLEGRO5_IMAGE_LIBRARIES} m)
target_link_libraries("libsuperderpy" ${ALLEGRO5_TTF_LIBRARIES} ${ALLEGRO5_FONT_LIBRARIES} ${ALLEGRO5_PRIMITIVES_LIBRARIES} ${ALLEGRO5_ACODEC_LIBRARIES} ${ALLEGRO5_AUDIO_LIBRARIES} ${ALLEGRO5_VIDEO_LIBRARIES} ${ALLEGRO5_COLOR_LIBRARIES} ${ALLEGRO5_IMAGE_LIBRARIES} ${ALLEGRO5_LIBRARIES} m)
if (LIBSUPERDERPY_IMGUI)
target_link_libraries("libsuperderpy" cimgui)