Browse Source

MagnumFont: peroperly link the TgaImporter dependency on static build.

It's correct in MagnumFontConverter (and probably all other plugins as
well), nut sure why not here.
pull/580/head
Vladimír Vondruš 4 years ago
parent
commit
8d4d854d9c
  1. 2
      src/MagnumPlugins/MagnumFont/CMakeLists.txt

2
src/MagnumPlugins/MagnumFont/CMakeLists.txt

@ -52,6 +52,8 @@ endif()
target_link_libraries(MagnumFont PUBLIC Magnum MagnumText MagnumTrade)
if(CORRADE_TARGET_WINDOWS)
target_link_libraries(MagnumFont PUBLIC TgaImporter)
elseif(MAGNUM_MAGNUMFONT_BUILD_STATIC)
target_link_libraries(MagnumFont INTERFACE TgaImporter)
endif()
install(FILES MagnumFont.h ${CMAKE_CURRENT_BINARY_DIR}/configure.h

Loading…
Cancel
Save