On 2/29/2012 3:02 AM, Mathieu Malaterre wrote:
Bug #661383 and #506992 describe the symptoms. Basically cmake internal mecanism to generating export file store full path to library
[snip]
IMPORTED_LINK_INTERFACE_LIBRARIES_RELEASE "/usr/lib/libz.so;vtksys"
Right. CMake uses full paths for linking to avoid ambiguities. Users that set ZLIB_LIBRARY=/some/path/to/a/file/libz.so expect *that* file to be used, not /some/other/path/that/came/first/in/search/path/libz.so, and not /some/path/to/a/file/libz.a. When building against a library that publishes this file in its link interface users expect the *same* library to be used for that link as was used originally.
I do not know if this possible but it would be much more flexible if cmake could generated instead:
[snip]
IMPORTED_LINK_INTERFACE_LIBRARIES_RELEASE "z;vtksys"
If you want the VTK package to use "z" as its zlib library instead of a specific file then build it with -DZLIB_LIBRARY=z to tell it so. -Brad -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org