From de0c370b5c580bc170ffdc6ab196ac43577d3921 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vladim=C3=ADr=20Vondru=C5=A1?= Date: Sun, 1 Sep 2019 21:02:42 +0200 Subject: [PATCH] MagnumFont{,Converter}: properly link to all dependencies. Otherwise they fail to build as dynamic with static Magnum libs. --- src/MagnumPlugins/MagnumFont/CMakeLists.txt | 2 +- src/MagnumPlugins/MagnumFontConverter/CMakeLists.txt | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/MagnumPlugins/MagnumFont/CMakeLists.txt b/src/MagnumPlugins/MagnumFont/CMakeLists.txt index 66443bf09..e6f27638d 100644 --- a/src/MagnumPlugins/MagnumFont/CMakeLists.txt +++ b/src/MagnumPlugins/MagnumFont/CMakeLists.txt @@ -48,7 +48,7 @@ add_plugin(MagnumFont if(BUILD_PLUGINS_STATIC AND BUILD_STATIC_PIC) set_target_properties(MagnumFont PROPERTIES POSITION_INDEPENDENT_CODE ON) endif() -target_link_libraries(MagnumFont PUBLIC Magnum MagnumText) +target_link_libraries(MagnumFont PUBLIC Magnum MagnumText MagnumTrade) if(CORRADE_TARGET_WINDOWS) target_link_libraries(MagnumFont PUBLIC TgaImporter) endif() diff --git a/src/MagnumPlugins/MagnumFontConverter/CMakeLists.txt b/src/MagnumPlugins/MagnumFontConverter/CMakeLists.txt index 814474406..7a7fee489 100644 --- a/src/MagnumPlugins/MagnumFontConverter/CMakeLists.txt +++ b/src/MagnumPlugins/MagnumFontConverter/CMakeLists.txt @@ -42,7 +42,7 @@ add_plugin(MagnumFontConverter if(BUILD_PLUGINS_STATIC AND BUILD_STATIC_PIC) set_target_properties(MagnumFontConverter PROPERTIES POSITION_INDEPENDENT_CODE ON) endif() -target_link_libraries(MagnumFontConverter PUBLIC Magnum MagnumText) +target_link_libraries(MagnumFontConverter PUBLIC Magnum MagnumText MagnumTrade) if(CORRADE_TARGET_WINDOWS) target_link_libraries(MagnumFontConverter PUBLIC TgaImageConverter) endif()