Experience shows that CMake prefers library information in the form of the absolute pathname of the library rather than the combination of -L and -l options typically delivered by pkg-config and therefore by our CMake pkg_check_pkgconfig macro. If the absolute pathnames are not used, then our CMake-based build system has trouble with rpath for both the build tree and install tree. I (re-)discovered this problem recently when trying to use a pango/cairo library stack that was installed in a non-standard location.
I have now written the cmake_link_flags macro to convert pkg-config -L and -l options to the equivalent absolute pathnames of libraries using the the appropriate find_library commands. The result (revision 8176) works well on Linux for our cairo devices even for the case where you want to use a pango/cairo library stack that is installed in a non-standard location. Our cairo devices need testing on all our platforms in general and also specifically for this change so I ask our developers to help out with these tests. Note our cairo devices give rather nice looking results which gives an extra incentive to do these tests on your platform of choice. The required pango/cairo stack of libraries should be accessible regardless of platform. Access should be straightforward for Linux, Mac OS X, and Cygwin developers while MinGW or bare windows developers should look at http://www.gimp.org/~tml/gimp/win32/downloads.html for help on how to get access to the GTK+ stack of libraries (which includes the pango/cairo stack of libraries as a subset). Alan __________________________ Alan W. Irwin Astronomical research affiliation with Department of Physics and Astronomy, University of Victoria (astrowww.phys.uvic.ca). Programming affiliations with the FreeEOS equation-of-state implementation for stellar interiors (freeeos.sf.net); PLplot scientific plotting software package (plplot.org); the libLASi project (unifont.org/lasi); the Loads of Linux Links project (loll.sf.net); and the Linux Brochure Project (lbproject.sf.net). __________________________ Linux-powered Science __________________________ ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Plplot-devel mailing list Plplot-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/plplot-devel