FindLua: fix wrong version list if EXACT is given

This commit is contained in:
Rolf Eike Beer 2014-10-02 21:41:43 +02:00
parent 99d34f46fa
commit c4a56b9c1c
1 changed files with 1 additions and 1 deletions

View File

@ -56,7 +56,7 @@ function(set_lua_version_vars)
if (Lua_FIND_VERSION_EXACT)
if (Lua_FIND_VERSION_COUNT GREATER 1)
set(lua_append_versions ${Lua_FIND_VERSION_MAJOR} ${Lua_FIND_VERSION_MINOR})
set(lua_append_versions ${Lua_FIND_VERSION_MAJOR}.${Lua_FIND_VERSION_MINOR})
endif ()
elseif (Lua_FIND_VERSION)
# once there is a different major version supported this should become a loop