Page MenuHomePhabricator

mitk_create_module PACKAGE_DEPENDS cannot handle target namespaces
Closed, WontfixPublic


If I add cpprestsdk|cpprest to the PACKAGE_DEPENDS of a module, the properties of the cpprestsdk::cpprest target are not respected, i.e. the module is not linked against the library, leading to unresolved symbol linker errors. However, if I do it in plain CMake, it works:

  target_link_libraries(${MODULE_TARGET} PRIVATE cpprestsdk::cpprest)

I guess we have to look into the mitkFunctionCreateModule.cmake and mitkFunctionUseModules.cmake files and fix something related to "target namespaces".

Event Timeline

kislinsk triaged this task as Normal priority.Mar 14 2019, 9:36 AM
kislinsk created this task.

Hi there! ๐Ÿ™‚

This task was auto-closed according to our Task Lifecycle Management.
Please follow this link for more information and don't forget that you are encouraged to reasonable re-open tasks to revive them. ๐Ÿš‘

Best wishes,
The MITK devs