MantisBT - CMake
View Issue Details
0009830CMakeModulespublic2009-11-03 15:552011-04-04 12:00
MeV 
David Cole 
normaltweakalways
closedfixed 
CMake-2-6 
CMake 2.8.4 
0009830: Minor change on FindLua51.cmake
I had to change FIND_LIBRARY a bit to get Lua 5.1 detected on my system (Ubuntu 64 bits, lua installed from repository). I changed line 31 from this: NAMES lua51 lua5.1 lua-5.1 lua
to this : NAMES "" lua51 lua5.1 lua-5.1 lua
This should be also true for Lua 5.0 (FindLua50.cmake)
No tags attached.
Issue History
2009-11-03 15:55MeVNew Issue
2009-11-05 13:13Alex NeundorfNote Added: 0018350
2009-11-05 17:58MeVNote Added: 0018356
2009-11-06 12:54Alex NeundorfNote Added: 0018363
2009-12-09 15:28Alex NeundorfNote Added: 0018753
2009-12-15 17:50MeVNote Added: 0018908
2010-12-15 07:03David ColeAssigned To => David Cole
2010-12-15 07:03David ColeStatusnew => assigned
2010-12-15 07:04David ColeNote Added: 0024130
2010-12-15 07:04David ColeStatusassigned => resolved
2010-12-15 07:04David ColeFixed in Version => CMake 2.8.4
2010-12-15 07:04David ColeResolutionopen => fixed
2011-04-04 12:00David ColeNote Added: 0026053
2011-04-04 12:00David ColeStatusresolved => closed

Notes
(0018350)
Alex Neundorf   
2009-11-05 13:13   
You added an empty string as first name which is searched ? Why ?

Alex
(0018356)
MeV   
2009-11-05 17:58   
Because without this empty string lua library was not found.
Lua is in those directories if this helps:
/usr/include/lua5.1
/usr/lib/
(0018363)
Alex Neundorf   
2009-11-06 12:54   
What's the exact name of the library ? Is it liblua51.so, i.e. which of the given names matches ?
Are there other lua libraries installed somewhere else which might get in the way in some way ?

Which exact version of cmake are you using ? 2.6.4 ?
It would be nice if you could check this behaviour also with 2.8.0 RC5: http://www.cmake.org/files/v2.8/ [^]

Alex
(0018753)
Alex Neundorf   
2009-12-09 15:28   
It would be nice if you could check this behaviour also with 2.8.0, now that it is out.
Is the problem still there ?

Alex
(0018908)
MeV   
2009-12-15 17:50   
My CMake version was 2.6-patch2 (Ubuntu Jaunty default version)

The problem seems to be unreproducible with this version or with 2.8.0. It don't know what was the problem but it gone away. Sorry for wasting your time.

Last thing, CMake 2.6 and 2.8 doesn't detect lua in the same directory. 2.6 has this output: "Found Lua51: /usr/lib64/liblua5.1.so;/usr/lib/libm.so"
whereas 2.8 has this output: "Found Lua51: /usr/lib/liblua5.1.so;/usr/lib/libm.so"
In short, 2.6 detects Lua in /usr/lib64 whereas 2.8 detects it in /usr/lib.
Don't know why this difference exits.
(0024130)
David Cole   
2010-12-15 07:04   
Resolving issue as notes seem to indicate it is fixed already in 2.8.0... Please reopen if there is still some sort of problem.

Thanks.
(0026053)
David Cole   
2011-04-04 12:00   
Closing resolved issues that have not been updated in more than 3 months.