[CMake] How to avoid the explicit library location when linking with imported library targets
Pere Mato Vila
Pere.Mato at cern.ch
Fri Sep 17 09:31:17 EDT 2010
Dear Brad,
Thanks for the prompt reply, but still I do not understand. I agree that if I have a project A that is exporting targets of the install tree and a project B that is using project A, I can move the install tree of A and I can still continue to build project B because the properties are based on a path relative to the export file. The problem I have is that when have already built and installed B I can not move anymore the location of the A. This is because the libraries created in B contains the absolute path to exported libraries in A. This I think would not be the case if the -l option was used in the link statement. Is this correct?
Regards,
Pere
More information about the CMake
mailing list