Hi Werner:

Lua5.1 is available with my brand new Debian squeeze (testing) system,
but it didn't work for a PLplot build because I did not set a special
cmake option. That lead me to look at the logic in
cmake/modules/lua.cmake, and I have greatly simplified a few stanzas
there (revision 11087) which I believe were seriously twisted by
no-longer-relevant 2.4.x concerns. I have checked the relevant FindLua
CMake modules for 2.6.0 and 2.8.2, and they consistently only define
LUA50_FOUND for the 5.0 version and LUA51_FOUND for the 5.1 version so
I have relied on those variables exclusively for my logic
simplification.

The result is Lua5.1 users no longer have to set a special option (in
fact all user choice of Lua version is gone).  Instead, our build
system simply uses Lua-5.1 if that is available, and otherwise Lua-5.0
if that is available and checks for consistency between the lua
command version and the Lua libraries.

Please review these changes.  I have tested the new logic on a Lua-5.1 system
for CMake-2.8.2.  The new logic appears to work perfectly for that
case and is so simple I believe it will work fine on Lua-5.0 or
Lua-5.1 systems for CMake-2.6.0 and all higher versions of CMake.

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 Sprint
What will you do first with EVO, the first 4G phone?
Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first
_______________________________________________
Plplot-devel mailing list
Plplot-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/plplot-devel

Reply via email to