[cmake-developers] [CMake 0015756]: FindLua.cmake doesn't work when both Lua5.2 and Lua5.3 are installed.

Mantis Bug Tracker mantis at public.kitware.com
Mon Sep 21 17:15:16 EDT 2015


The following issue has been SUBMITTED. 
====================================================================== 
http://public.kitware.com/Bug/view.php?id=15756 
====================================================================== 
Reported By:                Alan Witkowski
Assigned To:                
====================================================================== 
Project:                    CMake
Issue ID:                   15756
Category:                   Modules
Reproducibility:            always
Severity:                   minor
Priority:                   normal
Status:                     new
====================================================================== 
Date Submitted:             2015-09-21 15:15 MDT
Last Modified:              2015-09-21 15:15 MDT
====================================================================== 
Summary:                    FindLua.cmake doesn't work when both Lua5.2 and
Lua5.3 are installed.
Description: 
If you call find_package(Lua 5.2 REQUIRED) or find_package(Lua REQUIRED) this
happens:

Found Lua: /usr/lib64/liblua5.2.so;/usr/lib64/libm.so (found suitable version
"5.3.1", minimum required is "5.2")

Basically the 5.2 library is found but it still uses the 5.3 include path, hence
the wrong "suitable version":

CMakeCache.txt
LUA_INCLUDE_DIR:PATH=/usr/include
LUA_LIBRARY:FILEPATH=/usr/lib64/liblua5.2.so

Calling find_package(Lua 5.3 REQUIRED) works fine though.

Additional Information: 
lua5.3 is installed to /usr/include
lua5.2 is installed to /usr/include/lua5.2
====================================================================== 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2015-09-21 15:15 Alan Witkowski New Issue                                    
======================================================================



More information about the cmake-developers mailing list