In T26094#177295, @kislinsk wrote: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:
if(TARGET ${MODULE_TARGET}) target_link_libraries(${MODULE_TARGET} PRIVATE cpprestsdk::cpprest) endif()I guess we have to look into the mitkFunctionCreateModule.cmake and mitkFunctionUseModules.cmake files and fix something related to "target namespaces".
Description
Description
Related Objects
Related Objects
- Mentioned Here
- T26094: Classic C++ REST SDK superbuild integration
Event Timeline
Comment Actions
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