Browse Source

TgaImageConverter: workaround for linking error in the test.

Due to some weird bug (?) llvm-link complains about multiply defined
symbol.
pull/34/head
Vladimír Vondruš 13 years ago
parent
commit
f44af271df
  1. 6
      src/Plugins/TgaImageConverter/CMakeLists.txt

6
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_OBJECTS:TgaImageConverterObjects>)
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()

Loading…
Cancel
Save