BUG: Disable adding dependency for externally built modules#5763
Conversation
When a module is built outside of the ITK source, do not add the module as a dependency to the factory meta-module.
7f8833c to
77c1df1
Compare
SimonRit
left a comment
There was a problem hiding this comment.
Sorry, that does not seem to work for me. It does configure and compile with the following message at configuration
-- Cannot add RTKModule(ImageIO::DCMImagX) to factory meta-module ITKImageIO because is undefined (outside ITK source tree).
-- Cannot add RTKModule(ImageIO::His) to factory meta-module ITKImageIO because is undefined (outside ITK source tree).
-- Cannot add RTKModule(ImageIO::Hnc) to factory meta-module ITKImageIO because is undefined (outside ITK source tree).
-- Cannot add RTKModule(ImageIO::Hnd) to factory meta-module ITKImageIO because is undefined (outside ITK source tree).
-- Cannot add RTKModule(ImageIO::ImagX) to factory meta-module ITKImageIO because is undefined (outside ITK source tree).
-- Cannot add RTKModule(ImageIO::Ora) to factory meta-module ITKImageIO because is undefined (outside ITK source tree).
-- Cannot add RTKModule(ImageIO::XRad) to factory meta-module ITKImageIO because is undefined (outside ITK source tree).
-- Cannot add RTKModule(ImageIO::Xim) to factory meta-module ITKImageIO because is undefined (outside ITK source tree).
but the factories are not registered as far as I can tell.
Sorry, the problem is different, the problem seems to be with the ITK factories actually: Something must have changed... |
|
Please see the documentation here: I see you are also disabling P.S. You also may need to link to ITK::RTKModule, to get all the properties, but the RTK target likely has all the needed dependencies already. |
Thanks, I had missed that obviously. If I keep |
When a module is built outside of the ITK source, do not add the module as a dependency to the factory meta-module.
Addresses #5760
PR Checklist
Refer to the ITK Software Guide for
further development details if necessary.