Page MenuHomePhabricator

mitk_create_module PACKAGE_DEPENDS cannot handle target namespaces
Open, NormalPublic


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.