From f44af271df7b3a593649dc13036e593d57f9213c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vladim=C3=ADr=20Vondru=C5=A1?= Date: Fri, 29 Nov 2013 16:32:38 +0100 Subject: [PATCH] TgaImageConverter: workaround for linking error in the test. Due to some weird bug (?) llvm-link complains about multiply defined symbol. --- src/Plugins/TgaImageConverter/CMakeLists.txt | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/Plugins/TgaImageConverter/CMakeLists.txt b/src/Plugins/TgaImageConverter/CMakeLists.txt index 1ef44c77a..87d26761c 100644 --- a/src/Plugins/TgaImageConverter/CMakeLists.txt +++ b/src/Plugins/TgaImageConverter/CMakeLists.txt @@ -41,6 +41,10 @@ install(FILES ${TgaImageConverter_HEADERS} DESTINATION ${MAGNUM_PLUGINS_INCLUDE_ if(BUILD_TESTS) add_library(TgaImageConverterTestLib SHARED $) - target_link_libraries(TgaImageConverterTestLib Magnum) + # Otherwise llvm-link complains about multiply defined Debug::globalOutput. + # TODO: can this be done properly? + if(NOT CORRADE_TARGET_EMSCRIPTEN) + target_link_libraries(TgaImageConverterTestLib Magnum) + endif() add_subdirectory(Test) endif()