I have made widespread but minor changes today to get away from deprecated
features of CMake.

execute_process changes:

I changed the last few instances of exec_program (which is deprecated by
CMake) to execute_process.

pkg-config changes:

I defined a pkg_check_pkgconfig macro within pkg_config.cmake which
is based on the _pkg_check_modules_internal macro defined in
FindPkgConfig.cmake.

I replaced all instances of pkgconfig with pkg_check_pkgconfig, and all
instances of PKGCONFIG_EXECUTABLE with PKG_CONFIG_EXECUTABLE.  pkgconfig and
PKGCONFIG_EXECUTABLE are defined in the UsePkgConfig.cmake module which is
deprecated in the CVS version of CMake.  pkg_check_pkgconfig is
defined in pkg-config.cmake and PKG_CONFIG_EXECUTABLE is defined
in FindPkgConfig.cmake.

I have done some testing of the above widespread changes, and the build, the
install-tree example build, and the execution of the install-tree examples 
seems to be working on Ubuntu Dapper, but some additional testing on all the
platforms available to you may turn up some bugs so let me know if you find
anything.

When adding new possibilities to our CMake-based build system, please avoid
using exec_program or pkgconfig from now on.  Use execute_process and
pkg_check_pkgconfig instead.

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 DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Plplot-devel mailing list
Plplot-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/plplot-devel

Reply via email to